-
Notifications
You must be signed in to change notification settings - Fork 136
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
💡 [datadogLogs] Customizable levels per logger's handler type #3100
Comments
Hi @morzel85 , Thank you for reaching out. Are you looking for the configuration |
If I were to switch to log forwarding, then all the console calls (of certain level) would be captured, right? The issue here is that some entries to console are inserted by code outside of my control, hence the preference to use DD logger. |
Hello @morzel85, |
Using two different loggers would be more complex than the |
@morzel85, |
It is possible to setup both
console
andhttp
handler for a logger, but AFAIK it is not possible to configure different levels for the handlers.I would like to have
debug
level forconsole
andinfo
forhttp
(more data in browser console, less data on DD servers).My current workaround is to have the level defined as
debug
and usingbeforeSend
event to filter outdebug
level messages from sending to DD servers, it works but more explicit/declarative API would be nice.The text was updated successfully, but these errors were encountered: