Ibexa DXP Discussions

Community discussion forum for developers working with Ibexa DXP

Bin/console log

Hello,

We just upgraded our project to 3.3.2. and I’m not satisfied with the configuration of the logs in command line. The system is throwing up a stream of useless characters that completely drowns out the useful information.

Here is my configuration:

ezplatform/config/packages/dev/monolog.yaml

monolog:
  handlers:
    main:
        type: stream
        path: php://stderr
        level: debug
        channels: ["!event"]
    # uncomment to get logging in your browser
    # you may have to allow bigger header sizes in your Web server configuration
    #firephp:
    #    type: firephp
    #    level: info
    #chromephp:
    #    type: chromephp
    #    level: info
    console:
        type: console
        process_psr_3_messages: false
        channels: ["!event", "!doctrine", "!console"]

How do I get something nicer?

Just try to replace path: php://stderr with something like path: '%kernel.logs_dir%/main.log'

Thanks Serhey