NetEscapades.Extensions.Logging
NetEscapades.Extensions.Logging copied to clipboard
A rolling file logging provider for ASP.NET Core 2.0
Most LoggingProviders allow to read options from the configuration with a convention (Logging:File will be the one in your case). You can enable that by calling `LoggerProviderOptions.RegisterProviderOptions(builder.Services);` in `AddFile()`.
HostBuilder is now calling Dispose on its ILoggerFactory after building all the loggers (a bug fix I think) which is in turn disposing the BatchingLoggerProvider which is stopping the logging...
Is it possible to manually write to the log?
The batch file writer depends on the principal that a flush interval period passes and the code will exit naturally. This means items in the queue are not flushed during...
Is there any special syntax to be used for absolute paths? Things work just fine when I provide a relative path in options.LogDirectory, but when I use an absolute one...
I love the general intent behind `BatchingLogger` and `BatchingLoggerProvider` but they suffer from some of the same problems as the stock `ConsoleLogger` in that the actual message is created within...
Is it possible to configure the logging provider to use only the FileSizeLimit rolling option, and disabling the Periodicity option? In this case it would be really useful to be...
That would be super helpful when differentiating the log activity from two threads. Thanks a lot