Reputation: 3228
Is there a possibility to simply just add formatter: json
on config.yml of Symfony, in order to define what formatter to use on every Monolog instance?
Upvotes: 1
Views: 2711
Reputation: 36
services:
json:
class: Monolog\Formatter\JsonFormatter
monolog:
handlers:
file:
type: stream
level: debug
formatter: json
Upvotes: 2