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

Add the option to send logs with other log status levels #223

Open
jgarciapueyo opened this issue Sep 9, 2022 · 2 comments
Open

Add the option to send logs with other log status levels #223

jgarciapueyo opened this issue Sep 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@jgarciapueyo
Copy link

Is your feature request related to a problem? Please describe.
As far as I have found, the log status levels offered by this plugin are restricted to ['debug', 'info', 'warn', 'error']. However, in the documentation of log configuration (https://docs.datadoghq.com/logs/log_configuration/processors/?tab=ui#log-status-remapper), it shows that datadog allows for more log status levels (0-7 if is an integer or other levels it it is a string).

Describe the solution you'd like
I think adding more method calls allowing to send logs with other levels (alert, critical, etc.) or, preferably, a method that can be customized with any log status level would be a perfect solution to add more flexibility to the users of the plugin and allow to send logs with status level other than the 4 predefined by the plugin.

Additional context
For example, the javascript library @datadog/datadog-api-client to submit logs through the API allows to submit a log with any log status level using the additional properties

@jgarciapueyo jgarciapueyo added the enhancement New feature or request label Sep 9, 2022
@fuzzybinary
Copy link
Member

Hi @jgarciapueyo,

I'll definitely look into adding all levels in the future. In the meantime, you may actually be able to use the log status remapper anyway, since we support sending attributes with logs. I'm not 100% sure the remapper will overwrite the status, but it might be worth investigating.

@jgarciapueyo
Copy link
Author

Thanks @fuzzybinary! I'll take a look at the workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants