The New Relic Java agent is not configurable to modify the format in which it logs. To standardise the logging format, the component we are using New Relic for is using JSON logging as configured in a logback file.
This breaks the convention of the default New Relic logging, which outputs according to its own format and does not adopt logback.
An example message from the Java agent:
Feb 25, 2019 15:42:53 +0100 [7331 1] com.newrelic INFO: Using default collector host: collector.newrelic.com
I would like it to be configurable with either a VM argument, logback, or another way in which format New Relic outputs its logs. Logback would be preferred, as this means the user can define the output instead of relying on an implementation from New Relic. However, if this hinders implementing it correctly, a VM flag for logging to x format would be an option as well.
New Relic Edit
- I want this too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.