-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable service logging options when running as windows service
When running as a windows service, the collector's logger zapcore.Core is replaced by a customized zapcore.Core that writes the logs to the EventViewer ignoring what is configured in the yaml. Instead of replacing it, the PR creates a Tee that preserves the original Core and its configuration, and adds the customized Core for EventViewer. This way logs are duplicated and flushed by both Cores.
- Loading branch information
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters