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

How to append extended information to logger #74

Closed
luxapana opened this issue Apr 27, 2021 · 3 comments
Closed

How to append extended information to logger #74

luxapana opened this issue Apr 27, 2021 · 3 comments
Labels

Comments

@luxapana
Copy link

I wish to include traceid/spanid which are injected from opentelemetry instrumentation to logs. The console Appender can be configured as follows to do this:

<Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} traceId: %X{trace_id} spanId: %X{span_id} - %msg%n" />
        </Console>

And it outputs something like this:

15:19:24.154 [main] DEBUG MyApp traceId: b19e837e754e1cae22355f807f65c05d spanId: a82dd9d711431773 - Entering application.

How can I achieve this with chronicle logger? I do not wish to change existing log statements as some of the required logs are coming from third party libraries.

@luxapana
Copy link
Author

luxapana commented May 3, 2021

Some help is much appreciated @lburgazzoli @peter-lawrey

@peter-lawrey
Copy link
Member

Chronicle-Logger is just a different destination for logs, the same library features should work.

@tgd
Copy link

tgd commented Jun 3, 2024

Closing this out as no work is planned on this issue at the moment. Please comment on this issue if you would like it re-opened.

@tgd tgd closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
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

4 participants