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

Feature request: Change the value send for level "Information" #13

Open
GuusRaaphorst opened this issue Sep 22, 2022 · 0 comments
Open

Comments

@GuusRaaphorst
Copy link

Hi,

We are using your package to send the logging from our function apps to New Relic. That works like a charm.
The logging that is send from other places in our application landscape however send as value for loglevel 'info' instead of 'Information'.

Actual behaviour

I can see in the code that the value for level is determined based on Level.ToString(). The LogEventLevel value is Information, so it will send 'Information'.

Desired behaviour

It would be great if we can somehow influence the conversion from logevent.Level to attribute value.

A suggestion would be to make NewRelicPropertyFormatter overridable, extensible or replaceable. Then use AddProperty when adding the log event or call the simplify method (or a new method for this specific case) on the value before adding it.

But perhaps there are solutions that better fit the desired future of this package?

Kind regards,
Guus

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

1 participant