C# 클래스 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.
상속: log4net.Appender.AppenderSkeleton
파일 보기 프로젝트 열기: martijns/Ms.Azure.Logging 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

비공개 메소드들

메소드 설명
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.

메소드 상세

ActivateOptions() 공개 메소드

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

Append() 보호된 메소드

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent
리턴 void

Flush() 공개 메소드

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

TableStorageAppender() 공개 메소드

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

TableStorageAppender() 공개 메소드

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