question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AddLoggerProvider

See original GitHub issue

In 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
borrrdencommented, Feb 19, 2018

Above commit changes EnableTextLogging to EnableTextLogging(string) and adds a method SetBinaryLogDirectory(string). This should alleviate the issue without blocking the development of a cross platform specification for this type of logging extension.

0reactions
borrrdencommented, Feb 13, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found