AddLoggerProvider
See original GitHub issueIn Couchbase.Lite 2.0.0-db021 there was a method
Couchbase.Lite.Logging.Log.AddLoggerProvider(...);
This is not available any longer in 2.0.0-db022.
Functional Impact: Cannot create logfiles any longer.
How can you register a LoggerProvider? How can you activate logging to a logfile?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ILoggerProvider Interface (Microsoft.Extensions.Logging)
Represents a type that can create instances of ILogger. public interface class ILoggerProvider : IDisposable. C# Copy.
Read more >ILogger, ILoggerFactory, and ILoggerProvider in .NET
The LoggerFactory class is an in-built implementation of the ILoggerFactory interface. ILoggerProvider Interface. ILoggerProvider is responsible ...
Read more >Should I take ILogger, ILogger<T>, ILoggerFactory or ...
Given that, the ILoggerProvider is just a bridge to handle each of the registered log's messages. There is no need to use it,...
Read more >Custom Log Provider
An ILoggerProvider is responsible for instantiation, configuration and shutdown/cleanup (via IDisposable ) of one or more ILogger implementations.
Read more >.NET Logging Guide: Part 4 - Custom Logging Providers - ...
ILoggerProvider to build a logger that logs to other destinations beyond the .NET defaults. A log provider is a component that facilitates ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Above commit changes
EnableTextLogging
toEnableTextLogging(string)
and adds a methodSetBinaryLogDirectory(string)
. This should alleviate the issue without blocking the development of a cross platform specification for this type of logging extension.It’s not often that I get completely blindsided by something that in hindsight should be pretty obvious! Good point about that. So the answer has to be yes, for now obvious reasons. I think this needs to be provided via the NetDesktop support library since other platforms are all sandboxed and don’t have this issue.