C# Class Ms.Azure.Logging.Appenders.TableStorageAppender

The TableStorageAppender is an appender that collects log statements in memory and will transfer them on a scheduled interval or when the appender is flushed.
Inheritance: log4net.Appender.AppenderSkeleton
Datei anzeigen Open project: martijns/Ms.Azure.Logging Class Usage Examples

Public Methods

Method Description
ActivateOptions ( ) : void

Activates the options that have been configured on this Appender. This appender supports reconfiguration while active.

Flush ( ) : void

Forces a flush of the logentities collected in the appender to the table storage.

TableStorageAppender ( ) : System

Constructs a new instance of the TableStorageAppender with default Development Storage settings.

TableStorageAppender ( CloudStorageAccount storageAccount ) : System

Constructs a new instance of the TableStorageAppender with default settings.

Protected Methods

Method Description
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Private Methods

Method Description
AzureDiagnosticsRowKey ( String deploymentId = null, String roleName = null, String roleInstanceId = null ) : String
FlushInternal ( ) : void

Actually flushes the appender internally.

FormatEvent ( log4net.Core.LoggingEvent evt ) : string

Use the layoutoptions to format the event.

TableStorageAppender ( StorageCredentials credentials ) : System
TableStorageAppender ( string storageAccountName, string storageAccountKey ) : System
TransferThread ( ) : void

The transfer thread that will keep running until the application is closed. As this is a background thread, it will not block the application when it is trying to exit.

Method Details

ActivateOptions() public method

Activates the options that have been configured on this Appender. This appender supports reconfiguration while active.
public ActivateOptions ( ) : void
return void

Append() protected method

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent
return void

Flush() public method

Forces a flush of the logentities collected in the appender to the table storage.
public Flush ( ) : void
return void

TableStorageAppender() public method

Constructs a new instance of the TableStorageAppender with default Development Storage settings.
public TableStorageAppender ( ) : System
return System

TableStorageAppender() public method

Constructs a new instance of the TableStorageAppender with default settings.
public TableStorageAppender ( CloudStorageAccount storageAccount ) : System
storageAccount CloudStorageAccount The storage account to use
return System