Skip to content

Commit

Permalink
Docker: Log to json, fixes multiline logging in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Nov 8, 2024
1 parent 566c57f commit dd7e67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \
# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/engine.conf /etc/apache2/sites-enabled/engine.conf
COPY ./docker/conf/logging.yml /var/www/html/config/packages/
COPY ./docker/conf/logging.yml /var/www/html/app/config/logging.yml
# Instantiate devconf config
RUN cp app/config/parameters.yml.docker app/config/parameters.yml

Expand Down
11 changes: 1 addition & 10 deletions docker/conf/logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ monolog:
activation_strategy: engineblock.logger.manual_or_error_activation_strategy
passthru_level: "%logger.fingers_crossed.passthru_level%"
handler: stderr
channels: ["!authentication"]
formatter: engineblock.logger.formatter.syslog_json
stderr:
type: stream
path: php://stderr
ident: "%logger.syslog.ident%"
formatter: engineblock.logger.additional_info_formatter
authentication:
type: stream
path: php://stderr
ident: EBAUTH
facility: user
level: INFO
channels: [authentication]
formatter: engineblock.logger.formatter.syslog_json

0 comments on commit dd7e67b

Please sign in to comment.