/** * {@inheritdoc} * * Depending on the input type of the Loggly interface, this will default * to either a JSON formatter or a text appropriate formatter. * * @return \Monolog\Formatter\FormatterInterface */ protected function getDefaultFormatter() { if ($this->getLoggly()->getInput()->getFormat() === 'json') { return new JsonFormatter(); } return parent::getDefaultFormatter(); }