Class LogManager

Represents log manager.

Inheritance
System.Object
LogManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Core.Managers
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public static class LogManager

Methods

GetAppLog(Int32)

Gets the log by id.

Declaration
public static LogDto GetAppLog(int logId)
Parameters
Type Name Description
System.Int32 logId
Returns
Type Description
LogDto

GetAppLog(String, String, String, DateTime, Int32, Int32, ref Int32)

Gets the application log.

Declaration
public static LogDto GetAppLog(string source, string operation, string objectType, DateTime created, int startingRecord, int numberOfRecords, ref int totalRecords)
Parameters
Type Name Description
System.String source

The source.

System.String operation

The operation.

System.String objectType

Type of the object.

System.DateTime created

The created.

System.Int32 startingRecord

The starting record.

System.Int32 numberOfRecords

The number of records.

System.Int32 totalRecords

The total records.

Returns
Type Description
LogDto

GetSystemLog(String, String, DateTime, Int32, Int32, ref Int32)

Gets the system log.

Declaration
public static LogDto GetSystemLog(string operation, string objectType, DateTime created, int startingRecord, int numberOfRecords, ref int totalRecords)
Parameters
Type Name Description
System.String operation

The operation.

System.String objectType

Type of the object.

System.DateTime created

The created.

System.Int32 startingRecord

The starting record.

System.Int32 numberOfRecords

The number of records.

System.Int32 totalRecords

The total records.

Returns
Type Description
LogDto

SaveAppLog(LogDto)

Saves the log.

Declaration
public static void SaveAppLog(LogDto dto)
Parameters
Type Name Description
LogDto dto

The dto.

WriteLog(String, String, String, String, String, Boolean)

Writes the log.

Declaration
public static void WriteLog(string operation, string key, string type, string source, string notes, bool succeeded)
Parameters
Type Name Description
System.String operation

The operation.

System.String key

The key.

System.String type

The type.

System.String source

The source.

System.String notes

The notes.

System.Boolean succeeded

if set to true [succeeded].

WriteLog(String, String, String, String, String, String, Boolean)

Writes the log, truncates the strings to the maximum allowed length.

Declaration
public static void WriteLog(string operation, string userName, string key, string type, string source, string notes, bool succeeded)
Parameters
Type Name Description
System.String operation

The operation.

System.String userName

Name of the user.

System.String key

The key.

System.String type

The type.

System.String source

The source.

System.String notes

The notes.

System.Boolean succeeded

if set to true [succeeded].