-
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.
Make Docker logging to stderr the default
This will make logging to stderr the default. Also documentation is added on how to add syslog config. This will allow debugging in dev env (devonf) out-of-the-box.
- Loading branch information
1 parent
c72e17a
commit 7ce7a13
Showing
7 changed files
with
54 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,38 @@ | ||
# 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 to the Monolog 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] | ||
|
||
|