Метод | Описание | |
---|---|---|
ClearAllLoggers ( ) : void |
Clear all existing appenders and loggers
|
|
FlushAppenders ( ) : void |
Flush any appenders that we know to support flushing. Typically used to flush the TableStorageAppender just before the application shuts down.
|
|
InitializeAzureTableLogging ( CloudStorageAccount storageAccount, string customTable = null, log4net.Core.Level logLevel = null ) : void |
Initializes log4net with azure table logging.
|
|
InitializeAzureTableLogging ( StorageCredentials credentials, string customTable = null, log4net.Core.Level logLevel = null ) : void |
Initializes log4net with azure table logging.
|
|
InitializeFileLogging ( string logfile, log4net.Core.Level logLevel = null ) : void |
Initializes log4net with file logging.
|
|
InitializeFromConfiguration ( |
Initializes logging from configuration. The NameValueCollection will read the following properties: - LogType: TableStorage or File - LogStorageName: account name for the storage account - LogStorageKey: key for the storage account - LogStorageTable: optional, customize the table to log to - LogFile: Filename to log to - LogStorageString: use a connection string to indicate storage account and credentials (makes LogStorageName and LogStorageKey obsolete and has preference)
|
Метод | Описание | |
---|---|---|
DetermineLevel ( string level ) : log4net.Core.Level |
Converts a string loglevel to the correct type in order to configure an appender Things would be so much easier and flexible if they would've made it an Enum or some collection |
public static ClearAllLoggers ( ) : void | ||
Результат | void |
public static InitializeAzureTableLogging ( CloudStorageAccount storageAccount, string customTable = null, log4net.Core.Level logLevel = null ) : void | ||
storageAccount | CloudStorageAccount | |
customTable | string | |
logLevel | log4net.Core.Level | |
Результат | void |
public static InitializeAzureTableLogging ( StorageCredentials credentials, string customTable = null, log4net.Core.Level logLevel = null ) : void | ||
credentials | StorageCredentials | |
customTable | string | |
logLevel | log4net.Core.Level | |
Результат | void |
public static InitializeFileLogging ( string logfile, log4net.Core.Level logLevel = null ) : void | ||
logfile | string | |
logLevel | log4net.Core.Level | |
Результат | void |
public static InitializeFromConfiguration ( |
||
config | ||
Результат | void |