newrelic / java-log-extensions

Source for the New Relic Java log framework extensions.
Apache License 2.0
15 stars 22 forks source link

[Spike] Provide an appender that will report any error log message as an error to New Relic #93

Open meiao opened 1 month ago

meiao commented 1 month ago

Is your feature request related to a problem? Please describe.

Sometimes it is desirable that all the error log messages (and respective exception) be reported as an error to New Relic.

Feature Description

Provide a log appender that whenever receives an entry, if it is at Error level, will report an error to New Relic.

This appender can be configure in the logging configuration file and no change to the code should be necessary.

Describe Alternatives

Add a call to the API every time a error log message is written.

Instrument the logger code to make it call the API.

Priority

Nice to Have

workato-integration[bot] commented 1 month ago

https://new-relic.atlassian.net/browse/NR-302656