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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挕 Improvements to console forwarding #2738

Open
seanbecker15 opened this issue May 2, 2024 · 1 comment
Open

馃挕 Improvements to console forwarding #2738

seanbecker15 opened this issue May 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@seanbecker15
Copy link

Is your feature request related to a problem? Please describe.
From what I can tell, it's currently not possible to reconfigure the console logging strategy post-configuration. Consequently, I had to implement my own version of the console forwarding and duplicate a lot of the mapping from console api to datadog status within my application.

Describe the solution you'd like
Since there are a lot of potential solutions, I don't want to prescribe any particular solution. See alternatives below for some of the things I've come up with. My end goal is to make it easier to change the console forwarding strategy after configuration.

Describe alternatives you've considered

  • Expose console api mappers, types, and enums to make it easier for applications to create their own console logger (which can then be adjusted post-configuration)
  • Expose functions that allow applications to reconfigure the console logging strategy post-configuration
  • Deprecate the forwardConsoleLogs property in favor of adding another logger (i.e., datadogLogs.consoleLogger)
    • I don't find the array contract for this to be all that useful as I rely on using the idea of log levels. Anything above the log level should be captured.
@seanbecker15 seanbecker15 added the enhancement New feature or request label May 2, 2024
@thomas-lebeau
Copy link
Contributor

Hi @seanbecker15,
Thank you for your interest. The next step would be to contact support and fill a FEATURE_REQUEST with them.

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