Example #1
0
 public void Initialize()
 {
     _appender = new AzureTableAppender
     {
         ConnectionString = "UseDevelopmentStorage=true",
         TableName        = "testLoggingTable"
     };
     _appender.ActivateOptions();
 }
 public void Initialize()
 {
     _appender = new AzureTableAppender
     {
         ConnectionString = "UseDevelopmentStorage=true",
         TableName        = "testDynamicLoggingTable",
         PropAsColumn     = true,
         PartitionKeyType = PartitionKeyTypeEnum.DateReverse
     };
     _appender.ActivateOptions();
 }
Example #3
0
        public void Azure_Table_Appender()
        {
            _appender = new AzureTableAppender()
            {
                ConnectionString = CloudConfigurationManager.GetSetting("AzureStorageLogTableConnectionString"),
                TableName        = "testAzureLoggingTable"
            };
            _appender.ActivateOptions();
            const string message = "Exception to follow on other line";
            var          ex      = new Exception("This is the exception message");

            var @event = new LoggingEvent(null, null, "testLoggerName", Level.Critical, message, ex);

            _appender.DoAppend(@event);
        }