diff --git a/app/bootstrap.php b/app/bootstrap.php index d993ec39..096c35e5 100644 --- a/app/bootstrap.php +++ b/app/bootstrap.php @@ -27,7 +27,7 @@ return function(array $config_array = []) { // ------------------------------------------------------------------------- $app_logger = new Logger('animeclient'); - $app_logger->pushHandler(new RotatingFileHandler(__DIR__.'/logs/app.log', Logger::NOTICE)); + $app_logger->pushHandler(new RotatingFileHandler(__DIR__ . '/logs/app.log', Logger::NOTICE)); $app_logger->pushHandler(new BrowserConsoleHandler(Logger::DEBUG)); $container->setLogger($app_logger); diff --git a/src/Aviat/Ion/Di/ContainerInterface.php b/src/Aviat/Ion/Di/ContainerInterface.php index d9513557..bc5f6483 100644 --- a/src/Aviat/Ion/Di/ContainerInterface.php +++ b/src/Aviat/Ion/Di/ContainerInterface.php @@ -33,6 +33,7 @@ interface ContainerInterface extends \Interop\Container\ContainerInterface { * * @param LoggerInterface $logger * @param string $key The logger 'channel' + * @return Container */ public function setLogger(LoggerInterface $logger, $key = 'default');