C# Class Cedar.Framework.AuditTrail.Base.AuditLogListenerBase

This class is base class of all concrete audit log listener to listen the log writing request and write log entry.
Mostrar archivo Open project: Chinaccn/surfboard

Public Methods

Method Description
AuditLogListenerBase ( string name, string filterName ) : Cedar.Core.IoC

Initializes a new instance of the T:Cedar.Framework.AuditTrail.Base.AuditLogListenerBase class.

Write ( AuditLogEntry logEntry ) : void

Writes the specified audit log entry.

Protected Methods

Method Description
GetAuditLogFormatter ( AuditLogEntryItem logEntryItem ) : IAuditLogFormatter

Gets the audit log formatter.

WriteCore ( AuditLogEntry logEntry ) : void

Writes the specified audit log entry.

Method Details

AuditLogListenerBase() public method

Initializes a new instance of the T:Cedar.Framework.AuditTrail.Base.AuditLogListenerBase class.
public AuditLogListenerBase ( string name, string filterName ) : Cedar.Core.IoC
name string The listern name.
filterName string The configuration name of audit log filter.
return Cedar.Core.IoC

GetAuditLogFormatter() protected method

Gets the audit log formatter.
protected GetAuditLogFormatter ( AuditLogEntryItem logEntryItem ) : IAuditLogFormatter
logEntryItem AuditLogEntryItem The log entry item.
return IAuditLogFormatter

Write() public method

Writes the specified audit log entry.
public Write ( AuditLogEntry logEntry ) : void
logEntry AuditLogEntry The audit log entry.
return void

WriteCore() protected abstract method

Writes the specified audit log entry.
protected abstract WriteCore ( AuditLogEntry logEntry ) : void
logEntry AuditLogEntry The audit log entry.
return void