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.

Configurable logging

See original GitHub issue

Hello! Thanks for the great library.

I’ve been using it in my application for a while via nuget package ReportGenerator.Core, and now I wonder how to set up logging in a way that internal library logs are not printed to console, but instead redirected to the application-level logger (I’m using Serilog).

Is there a way to configure that? From what I see from source code, class loggers are resolved once, and are stored in static fields, which will prevent runtime reconfiguration.

Am I missing something?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielpalmecommented, Sep 8, 2021

Sure, that should be no problem.

0reactions
danielpalmecommented, Sep 8, 2021

I created a draft here: #446 What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging.config — Logging configuration
Describing a logging configuration requires listing the various objects to create and the connections between them; for example, you may create a handler...
Read more >
Logging configuration
JBoss Logging is built into Quarkus and provides unified configuration for all supported logging APIs. Configure the runtime logging in the application.
Read more >
Logging in .NET Core and ASP.NET Core
Configure logging. Logging configuration is commonly provided by the Logging section of appsettings.{ENVIRONMENT}.json files, where the { ...
Read more >
Configure the Logging agent
You can configure the agent to stream additional logs; for details, go to Customizing the Logging agent configuration on this page. How the...
Read more >
Logging
There are at least three ways to configure a logger: Using an INI-formatted file: Pro: possible to update configuration while running, using the...
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