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

Use logging framework #126

Open
zalintyre opened this issue Oct 15, 2023 · 2 comments
Open

Use logging framework #126

zalintyre opened this issue Oct 15, 2023 · 2 comments

Comments

@zalintyre
Copy link
Contributor

pyroscope-java currently uses a custom logger implementation.

I'd like to propose the usage of a dedicated logging framework like SLF4J. What do you think?

@korniltsev
Copy link
Collaborator

pyroscope jar creates a shadow copy of all dependncies and has no logger dependency.

If it is loaded as javaagent - I dont see a good way to use logging frameworks? Do you?

If it is loaded as a java dependency from java code - you can pass a logger interface implementation passing calls to whatever logging framework is used in the app. Does it make sense and work for you?

@devurandom
Copy link

If it is loaded as javaagent - I dont see a good way to use logging frameworks? Do you?

The OpenTelemetry JavaAgent somehow manages to log to SLF4J, even though it is an agent. Maybe these code references are helpful to figure out how:

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

No branches or pull requests

3 participants