Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow logger name customization #1979

Open
Nazukin-Dmitry opened this issue Dec 15, 2024 · 1 comment
Open

Allow logger name customization #1979

Nazukin-Dmitry opened this issue Dec 15, 2024 · 1 comment
Labels

Comments

@Nazukin-Dmitry
Copy link
Contributor

I would like to have the ability to customize logger name.

Detailed Description

Context

For example, I have 2 outgoing intergrations and 2 feign clients: FeignClientA, FeignClientB.
In some moment I need logs for FeignClientA for debugging.
I would like to enable trace logs for FeignClientA, but don't enable for FeignClientB.
Like this:

logging.level.FeignClientA: TRACE
logging.level.FeignClientB: INFO

Right now I can only enable trace logs globally with logging.level.org.zalando.logbook: TRACE. It will enable logs for everything and I can overload logs storage.

It also could be usefull if we have logbook logging for incoming and outgoing requests, It would be possible to enable logs separatly.

Possible Implementation

Let to inject logger into log writer: DefaultHttpLogWriter, LogstashLogbackSink ...

Your Environment

  • Version used:
  • Link to your project:
@whiskeysierra
Copy link
Collaborator

whiskeysierra commented Dec 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants