Skip to content

Commit

Permalink
Logger config has been moved to a separate file to simplify its chang…
Browse files Browse the repository at this point in the history
…e for Docker environment
  • Loading branch information
vtsykun committed Nov 24, 2019
1 parent ade208f commit 084cf7d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
25 changes: 1 addition & 24 deletions app/config/config_prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
imports:
- { resource: config.yml }
- { resource: logger.yml }

doctrine:
orm:
Expand All @@ -16,30 +17,6 @@ doctrine_cache:
predis:
client_id: snc_redis.cache_client

monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
channels: ['!event']
excluded_404s:
- ^/
nested:
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
include_stacktraces: true

console_debug:
type: console
verbosity_levels:
VERBOSITY_NORMAL: EMERGENCY
VERBOSITY_VERBOSE: INFO
VERBOSITY_VERY_VERBOSE: NOTICE
VERBOSITY_DEBUG: DEBUG
formatter: packagist.console_stack_trace_line_formatter

snc_redis:
clients:
default:
Expand Down
23 changes: 23 additions & 0 deletions app/config/logger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
channels: ['!event']
excluded_404s:
- ^/
nested:
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
include_stacktraces: true

console_debug:
type: console
verbosity_levels:
VERBOSITY_NORMAL: EMERGENCY
VERBOSITY_VERBOSE: INFO
VERBOSITY_VERY_VERBOSE: NOTICE
VERBOSITY_DEBUG: DEBUG
formatter: packagist.console_stack_trace_line_formatter

0 comments on commit 084cf7d

Please sign in to comment.