protected function makeDefaultLogger()
{
$logger = new Logger($this->environment);
if ($logpath = $this->getLogPath()) {
$handler = new StreamHandler($logpath, Logger::DEBUG);
$logger->pushHandler($handler);
$formatter = new LineFormatter(null, static::LOG_TS_FORMAT, true);
$handler->setFormatter($formatter);
}
return $logger;
}