C# Class Cedar.Framework.AuditTrail.AuditLogger

This class is used to write audit log entry.
Inheritance: IDisposable
Datei anzeigen Open project: Chinaccn/surfboard

Public Methods

Method Description
CreateAuditLogger ( string functionName ) : AuditLogger

Create T:Cedar.Framework.AuditTrail.AuditLogger based on the specified function name.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Flush ( ) : void

Drive the audit log listeners to write the stored audit log entry.

GetLogDetail ( string tableName, string logId ) : List

Gets the log detail.

Write ( object logData, OperationType operationType, string customOperationName = null ) : void

Writes the specified log data.

Write ( string action, string actionDescription, string inputsParams, dynamic actionRemarks ) : void

Private Methods

Method Description
AuditLogger ( AuditLogEntry logEntry ) : System
EnsureNotDisposed ( ) : void

Method Details

CreateAuditLogger() public static method

Create T:Cedar.Framework.AuditTrail.AuditLogger based on the specified function name.
public static CreateAuditLogger ( string functionName ) : AuditLogger
functionName string Name of the function.
return AuditLogger

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Flush() public method

Drive the audit log listeners to write the stored audit log entry.
public Flush ( ) : void
return void

GetLogDetail() public static method

Gets the log detail.
public static GetLogDetail ( string tableName, string logId ) : List
tableName string Name of the table.
logId string The log ID.
return List

Write() public method

Writes the specified log data.
public Write ( object logData, OperationType operationType, string customOperationName = null ) : void
logData object The log data.
operationType OperationType Type of the operation.
customOperationName string Name of the custom operation.
return void

Write() public method

public Write ( string action, string actionDescription, string inputsParams, dynamic actionRemarks ) : void
action string
actionDescription string
inputsParams string
actionRemarks dynamic
return void