elixir_agent
elixir_agent copied to clipboard
Need some way to config the default log level
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