Class AzureTableStorageLogger
Inheritance
AzureTableStorageLogger
Assembly: Lacuna.Pki.AzureConnector.dll
Syntax
public class AzureTableStorageLogger : ILogger
Fields
DefaultTableName
Declaration
public const string DefaultTableName = null
Field Value
PartitionKey
Declaration
public const string PartitionKey = null
Field Value
Methods
Declaration
CreateFromConnectionString(String, String, LogLevels)
Declaration
public static AzureTableStorageLogger CreateFromConnectionString(string connectionString, string tableName = null, LogLevels minLevel = null)
Parameters
Type |
Name |
Description |
String |
connectionString |
|
String |
tableName |
|
LogLevels |
minLevel |
|
Returns
CreateFromSettingName(String, String, LogLevels)
Declaration
public static AzureTableStorageLogger CreateFromSettingName(string settingName, string tableName = null, LogLevels minLevel = null)
Parameters
Type |
Name |
Description |
String |
settingName |
|
String |
tableName |
|
LogLevels |
minLevel |
|
Returns
CreateFromStorageAccount(CloudStorageAccount, String, LogLevels)
Declaration
public static AzureTableStorageLogger CreateFromStorageAccount(CloudStorageAccount storageAccount, string tableName = null, LogLevels minLevel = null)
Parameters
Type |
Name |
Description |
CloudStorageAccount |
storageAccount |
|
String |
tableName |
|
LogLevels |
minLevel |
|
Returns
CreateFromTableClient(CloudTableClient, String, LogLevels)
Declaration
public static AzureTableStorageLogger CreateFromTableClient(CloudTableClient tableClient, string tableName = null, LogLevels minLevel = null)
Parameters
Type |
Name |
Description |
CloudTableClient |
tableClient |
|
String |
tableName |
|
LogLevels |
minLevel |
|
Returns
CreateFromTableReference(CloudTable, LogLevels)
Declaration
public static AzureTableStorageLogger CreateFromTableReference(CloudTable tableReference, LogLevels minLevel = null)
Parameters
Type |
Name |
Description |
CloudTable |
tableReference |
|
LogLevels |
minLevel |
|
Returns
Flush()
Declaration
GetTableAsync()
Declaration
protected Task<CloudTable> GetTableAsync()
Returns
Type |
Description |
Task<CloudTable> |
|
Log(LogLevels, String, String)
Declaration
public void Log(LogLevels level, string message, string source)
Parameters
Type |
Name |
Description |
LogLevels |
level |
|
String |
message |
|
String |
source |
|