C# Класс Cedar.Framework.AuditTrail.AuditLogger

This class is used to write audit log entry.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AuditLogger ( AuditLogEntry logEntry ) : System
EnsureNotDisposed ( ) : void

Описание методов

CreateAuditLogger() публичный статический Метод

Create T:Cedar.Framework.AuditTrail.AuditLogger based on the specified function name.
public static CreateAuditLogger ( string functionName ) : AuditLogger
functionName string Name of the function.
Результат AuditLogger

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Flush() публичный Метод

Drive the audit log listeners to write the stored audit log entry.
public Flush ( ) : void
Результат void

GetLogDetail() публичный статический Метод

Gets the log detail.
public static GetLogDetail ( string tableName, string logId ) : List
tableName string Name of the table.
logId string The log ID.
Результат List

Write() публичный Метод

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.
Результат void

Write() публичный Метод

public Write ( string action, string actionDescription, string inputsParams, dynamic actionRemarks ) : void
action string
actionDescription string
inputsParams string
actionRemarks dynamic
Результат void