-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1792 from OpenConext/feature/add-docker-logging-c…
…onfig Make Docker logging to stderr the default
- Loading branch information
Showing
7 changed files
with
53 additions
and
32 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Logging | ||
|
||
## Overview | ||
|
||
The default logging method of Engineblock is logging to `stderr`, which is particularly useful for Docker-based deployments. | ||
However, logging to `syslog` will still be possible for environments where traditional syslog logging is required. | ||
|
||
## Configuring Logging to Syslog | ||
|
||
To configure `logging.yml` to log to syslog, you should use the syslog handler in the logging configuration. | ||
Below is an example configuration: | ||
|
||
```yaml | ||
monolog: | ||
channels: ["%logger.channel%", "authentication"] | ||
handlers: | ||
main: | ||
type: fingers_crossed | ||
activation_strategy: engineblock.logger.manual_or_error_activation_strategy | ||
passthru_level: "%logger.fingers_crossed.passthru_level%" | ||
channels: [!authentication] | ||
handler: nested | ||
authentication: | ||
type: syslog | ||
ident: EBAUTH | ||
facility: user | ||
level: INFO | ||
channels: [authentication] | ||
formatter: engineblock.logger.formatter.syslog_json | ||
nested: | ||
type: syslog | ||
ident: "EBLOG" | ||
formatter: engineblock.logger.formatter.syslog_json` | ||
console: | ||
type: console | ||
process_psr_3_messages: false | ||
channels: [!event, !doctrine, !console] |