Skip to content

Commit

Permalink
Update monolog.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxandreOgeret authored Jun 12, 2019
1 parent b04fa38 commit 5f3376a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/packages/prod/monolog.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
monolog:
channels: ['linksecurity', 'linkVisitDb', 'geo2ip']
handlers:
main:
type: fingers_crossed
Expand All @@ -15,3 +16,20 @@ monolog:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]

linksecurity:
level: debug
type: rotating_file
path: '%kernel.logs_dir%/linksecurity.log'
channels: [linksecurity]
max_files: 5
geo2ip:
level: debug
type: rotating_file
path: '%kernel.logs_dir%/geo2ip.log'
channels: [geo2ip]
max_files: 5
linkVisitDb:
type: service
id: App\Util\MonologHandler\MonologLinkVisitHandler
channels: [linkVisitDb]

0 comments on commit 5f3376a

Please sign in to comment.