You can add the option include_stacktraces: true to your monolog configuration:

Example:

monolog:
    handlers:
        main:
            type: stream
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
            channels: [!event]
            include_stacktraces: true

Next Post Previous Post