Skip to content

Override the logging when "Error posting diagnostic event" occurs #208

@mkeithsp

Description

@mkeithsp

Is your feature request related to a problem? Please describe.
We have build a logging library that is designed to output messages in a particular format, and we have built alerts/dashboards based on that format. When launchdarkly encounters errors posting diagnostic events, it outputs a basic message to std out, which our alerts/dashboards interpret as a critical error even though it is not. I'm not aware of how I can override or customize the behavior of these logs.

Describe the solution you'd like
An ability to pass in custom logging infrastructure to the launch darkly client or config. For example, it could be an object called logger that has a method called log that takes message as an argument. The custom logger object passed in is then able to log the message as it sees fit, and in our case we would simply embed the message into our standard logging format and it would play nicely with our alerting / dashboards.

Describe alternatives you've considered
An ability to disable the native logging.
Re-implement the 'EventProcessor' class in order to customize it, but there is a bit more nuance there and while it may be possible to do so, it seems a rather expensive / time-consuming solution.

Additional context
Add any other context about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalewaiting for feedbackIndicates LaunchDarkly is waiting for customer feedback before issue is closed due to staleness.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions