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

Add log appender example #108

Merged
merged 3 commits into from
Mar 2, 2023
Merged

Conversation

jack-berg
Copy link
Member

Adding functional examples demonstrating the log4j and logback appenders.

Partially motivated by the goal of stabilizing log bridge API and SDK, partially to make it abundantly how to use our log solutions.

@jack-berg jack-berg requested review from a team March 1, 2023 23:07
Comment on lines +28 to +31
private static final org.apache.logging.log4j.Logger log4jLogger =
LogManager.getLogger("log4j-logger");
private static final org.slf4j.Logger slf4jLogger = LoggerFactory.getLogger("slf4j-logger");
private static final java.util.logging.Logger julLogger = Logger.getLogger("jul-logger");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 (to seem them used all in one file 😂)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, originally I had separate examples for each situation, but that just created a bunch of bloat and increased the maintenance burden. Let's show it all in one place instead!

@jack-berg jack-berg merged commit 65220a4 into open-telemetry:main Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants