forked from cloudfoundry/gorouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Syslog Improvements (2) (cloudfoundry#459)
* feat: make syslog logging useable * do not log an empty new line when writing to syslog * allow operator to configure truncation on syslog * fix: allow syslog-only logging * feat: replace log/syslog with internal version The go standard library implementation of log/syslog has been abandoned and is no longer maintained. In our tests with syslog logging in gorouter we noticed a significant performance penalty over file based logging. However, with file based logging we frequently observe broken logs because logrotate interferes with log reading / writing. This commit inlines the relevant file from log/syslog and refactors the implementation to be on-par with the file based logging. Co-authored-by: Alexander Lais <alexander.lais@sap.com> * fix: rename testState.newRequest -> testState.newGetRequest * test: add integration test for syslog access logs * test: check errors --------- Co-authored-by: Alexander Lais <alexander.lais@sap.com>
- Loading branch information
Showing
21 changed files
with
643 additions
and
56 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
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
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
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
Oops, something went wrong.