]> git.mxchange.org Git - friendica.git/commitdiff
Log format
authorPhilipp Holzer <admin@philipp.info>
Tue, 1 Jan 2019 18:37:10 +0000 (19:37 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:59:09 +0000 (09:59 -0500)
src/Util/LoggerFactory.php

index ac6f6c92df6d9a3a4846cd5548aa3a041b9be73b..d99093efe4f0da1d15f3c97ab17ead944ae61409 100644 (file)
@@ -70,7 +70,7 @@ class LoggerFactory
                if ($logger instanceof Monolog\Logger) {
                        $fileHandler = new Monolog\Handler\StreamHandler($stream . ".1", Monolog\Logger::toMonologLevel($level));
 
-                       $formatter = new Monolog\Formatter\LineFormatter("%channel% [%level_name%]: %message% %context% %extra%");
+                       $formatter = new Monolog\Formatter\LineFormatter("%datetime% %channel% [%level_name%]: %message% %context% %extra%\n");
                        $fileHandler->setFormatter($formatter);
 
                        $logger->pushHandler($fileHandler);