I have this code:
$logger = $this->get('logger');
$logger->info('Test');
Works fine in dev but it is ignored in production. How can I force to log this in production too?
I have this code:
$logger = $this->get('logger');
$logger->info('Test');
Works fine in dev but it is ignored in production. How can I force to log this in production too?
Take a look at your monolog config on app/config/config_prod.yml by default has as action level: error
monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
See that for the full reference: http://symfony.com/doc/current/reference/configuration/monolog.html