C# Class Cedar.Framework.AuditTrail.AuditLogger

This class is used to write audit log entry.
Inheritance: IDisposable
Afficher le fichier Open project: Chinaccn/surfboard

Méthodes publiques

Méthode 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

Méthode Description
AuditLogger ( AuditLogEntry logEntry ) : System
EnsureNotDisposed ( ) : void

Method Details

CreateAuditLogger() public static méthode

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

Dispose() public méthode

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

Flush() public méthode

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

GetLogDetail() public static méthode

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

Write() public méthode

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.
Résultat void

Write() public méthode

public Write ( string action, string actionDescription, string inputsParams, dynamic actionRemarks ) : void
action string
actionDescription string
inputsParams string
actionRemarks dynamic
Résultat void