2 instantiations of LogMessage
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLoggerProvider.cs (2)
103
_currentBatch.Add(new
LogMessage
(DateTimeOffset.Now, $"{messagesDropped} message(s) dropped because of queue size limit. Increase the queue size or decrease logging verbosity to avoid this.{Environment.NewLine}"));
143
if (!_messageQueue.TryAdd(new
LogMessage
(timestamp, message), millisecondsTimeout: 0, cancellationToken: _cancellationTokenSource.Token))
15 references to LogMessage
Microsoft.Extensions.Logging.AzureAppServices (15)
BatchingLoggerProvider.cs (9)
18
private readonly List<
LogMessage
> _currentBatch = new List<
LogMessage
>();
26
private BlockingCollection<
LogMessage
> _messageQueue;
86
internal abstract Task WriteMessagesAsync(IEnumerable<
LogMessage
> messages, CancellationToken token);
94
while (limit > 0 && _messageQueue.TryTake(out
var
message))
158
new BlockingCollection<
LogMessage
>(new ConcurrentQueue<
LogMessage
>()) :
159
new BlockingCollection<
LogMessage
>(new ConcurrentQueue<
LogMessage
>(), _queueSize.Value);
BlobLoggerProvider.cs (3)
55
internal override async Task WriteMessagesAsync(IEnumerable<
LogMessage
> messages, CancellationToken cancellationToken)
74
foreach (
var
logEvent in eventGroup)
87
private (int Year, int Month, int Day, int Hour) GetBlobKey(
LogMessage
e)
FileLoggerProvider.cs (3)
39
internal override async Task WriteMessagesAsync(IEnumerable<
LogMessage
> messages, CancellationToken cancellationToken)
54
foreach (
var
item in group)
69
private (int Year, int Month, int Day) GetGrouping(
LogMessage
message)