/// <summary> /// The append. /// </summary> /// <param name="loggingEvent"> /// The logging event. /// </param> protected override void Append(LoggingEvent loggingEvent) { var entity = new LogEventEntity { Message = loggingEvent.RenderedMessage, Level = loggingEvent.Level.Name, Class = loggingEvent.LocationInformation.ClassName, Line = loggingEvent.LocationInformation.LineNumber }; var insertOperation = TableOperation.Insert(entity); this.table.ExecuteAsync(insertOperation); }
/// <summary> /// The append. /// </summary> /// <param name="loggingEvent"> /// The logging event. /// </param> protected override void Append(LoggingEvent loggingEvent) { var entity = new LogEventEntity { Message = loggingEvent.RenderedMessage, Level = loggingEvent.Level.Name, LoggerName = loggingEvent.LoggerName, Domain = loggingEvent.Domain, ThreadName = loggingEvent.ThreadName, Identity = loggingEvent.Identity }; // Create the TableOperation that inserts the customer entity. TableOperation insertOperation = TableOperation.Insert(entity); // Execute the insert operation. this.table.ExecuteAsync(insertOperation); }