Skip to content

Prepend windowsEventLogCore instead of appending #5297

@braydonk

Description

@braydonk

Is your feature request related to a problem? Please describe.
When creating a new Windows service, a zap core for Windows Event Log output is created and appended to the CollectorSettings.LoggingOptions that were passed in by the user. Unfortunately, this means the windowsEventLogCore is the first in line of zap cores to be executed. This leads to the LoggingOptions passed in not being applied to the Windows Event Log output.

Describe the solution you'd like
It would be preferable if the windowsEventLogCore was instead prepended to the LoggingOptions in newWithWindowsEventLogCore so that the options the user passed in will wrap the event log core, instead of the event log core wrapping the user's options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions