imports:
    - { resource: config.yml }

framework:
    router:
        resource: "%kernel.root_dir%/config/routing_dev.yml"
        strict_requirements: true
    profiler: { only_exceptions: false }

web_profiler:
    toolbar: "%debug_toolbar%"
    intercept_redirects: "%debug_redirects%"

# The monolog configuration below overwrites the in logging.yml that
# is normally used for production.
monolog:
    handlers:
        prod-signaler:
            type: fingers_crossed
            action_level: ERROR
            passthru_level: DEBUG # DEV setting: this means that all message of level DEBUG or higher are always logged
            #passthru_level: NOTICE # PROD setting this means that all message of level NOTICE or higher are always logged
            handler: main_syslog
            bubble: false # if we handle it, nothing else should
        main_syslog:
            type: syslog
            ident: stepup-selfservice
            facility: user
            formatter: surfnet_stepup.monolog.json_formatter

assetic:
    use_controller: "%use_assetic_controller%"

nelmio_security:
    csp:
        img: [ self, 'data:' ]
        script: [ self, unsafe-inline ]
        style: [ self, unsafe-inline ]

imports:
    - { resource: config.yml }

framework:
    router:
        resource: "%kernel.root_dir%/config/routing_dev.yml"
        strict_requirements: true
    profiler: { only_exceptions: false }

web_profiler:
    toolbar: "%debug_toolbar%"
    intercept_redirects: "%debug_redirects%"

# The monolog configuration below overwrites the in logging.yml that
# is normally used for production.
monolog:
    handlers:
        prod-signaler:
            type: fingers_crossed
            action_level: ERROR
            passthru_level: DEBUG # DEV setting: this means that all message of level DEBUG or higher are always logged
            #passthru_level: NOTICE # PROD setting this means that all message of level NOTICE or higher are always logged
            handler: main_syslog
            bubble: true
        main_syslog:
            type: syslog
            ident: stepup-selfservice
            facility: user
            formatter: surfnet_stepup.monolog.json_formatter
        main_logfile:
            type: stream
            handler: logfile
            level: NOTICE
            path: %kernel.logs_dir%/%kernel.environment%.log

assetic:
    use_controller: "%use_assetic_controller%"

nelmio_security:
    csp:
        img: [ self, 'data:' ]
        script: [ self, unsafe-inline ]
        style: [ self, unsafe-inline ]

Enable file logging for development
Enable file logging for development

The development configuration now logs to two destinations:

 - fingers crossed to syslog (DEBUG and higher, action leven ERROR)
 - log all notices and higher to app/logs/dev.log
