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

Need some way to config the default log level #414

Closed
tomwang57 opened this issue Nov 6, 2023 · 1 comment
Closed

Need some way to config the default log level #414

tomwang57 opened this issue Nov 6, 2023 · 1 comment

Comments

@tomwang57
Copy link

tomwang57 commented Nov 6, 2023

Is your feature request related to a problem? Please describe.
After launch my phoenix app, the newrelic debug messages are output all the time:

[DEBUG] - 2023-11-06 20:10:57 - Completed Custom Event harvest - size: 4, seen: 4, max: 83
[DEBUG] - 2023-11-06 20:10:57 - Completed Transaction Event harvest - size: 0, seen: 0, max: 83
[DEBUG] - 2023-11-06 20:10:57 - Completed TelemetrySdk.Logs harvest - size: 0, seen: 0, max: 5000
[DEBUG] - 2023-11-06 20:10:57 - Completed TransactionError Event harvest - size: 0, seen: 0, max: 8
[DEBUG] - 2023-11-06 20:11:02 - Completed TelemetrySdk.Span harvest - mode: sampling, size: 0, seen: 0, max: 5000
[DEBUG] - 2023-11-06 20:11:02 - Completed TelemetrySdk.Logs harvest - size: 0, seen: 0, max: 5000
[DEBUG] - 2023-11-06 20:11:02 - Completed Custom Event harvest - size: 2, seen: 2, max: 83
[DEBUG] - 2023-11-06 20:11:02 - Completed Transaction Event harvest - size: 0, seen: 0, max: 83
[DEBUG] - 2023-11-06 20:11:02 - Completed TransactionError Event harvest - size: 0, seen: 0, max: 8
[DEBUG] - 2023-11-06 20:11:07 - Completed TelemetrySdk.Span harvest - mode: sampling, size: 0, seen: 0, max: 5000
[DEBUG] - 2023-11-06 20:11:07 - Completed Custom Event harvest - size: 6, seen: 6, max: 83
[DEBUG] - 2023-11-06 20:11:07 - Completed TelemetrySdk.Logs harvest - size: 0, seen: 0, max: 5000
[DEBUG] - 2023-11-06 20:11:07 - Completed Transaction Event harvest - size: 0, seen: 0, max: 83
[DEBUG] - 2023-11-06 20:11:07 - Completed TransactionError Event harvest - size: 0, seen: 0, max: 8
[DEBUG] - 2023-11-06 20:11:11 - Completed Span Event harvest - size: 0, seen: 0, max: 1000

And i read the doc and can't find a way to disable it, like change the log level.

Describe the solution you'd like
The agent need to provide some way to deal with it, like some way to change log level

Describe alternatives you've considered
Or provide a way just to disable logging

My used version:
new_relic_agent: 1.27.8

@binaryseed
Copy link
Collaborator

With #455 and #402, you should be able to use standard Elixir Logger mechanisms for this

Even before 455, you can tell the agent to use Elixir Logger via config - https://hexdocs.pm/new_relic_agent/NewRelic.Config.html#logger/0

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

2 participants