diff --git a/composer.json b/composer.json index 07f8682..a869478 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "enobrev/php-tools", "description": "General Tools", - "version": "1.0.2", + "version": "1.0.3", "type": "library", "license": "MIT", "authors": [ diff --git a/src/Log.php b/src/Log.php index d9c8243..41c224a 100644 --- a/src/Log.php +++ b/src/Log.php @@ -51,14 +51,15 @@ private static function initLogger(): Logger { if (self::$bContained) { if (self::$bJSONLogs) { - $oFormatter = new LineFormatter("%datetime% %level_name% @cee: %context%\n", DATE_ATOM); +// $oFormatter = new LineFormatter("%datetime% %level_name% @cee: %context%\n", DATE_ATOM); // Requires mmnormalize in rsyslog sidecar + $oFormatter = new LineFormatter("@cee: %context%\n", DATE_ATOM); } else { $oFormatter = new LineFormatter("%datetime% %level_name% %extra% %context%\n", DATE_ATOM); } $oHandler = new StreamHandler(fopen('php://stdout', 'wb'), Logger::DEBUG); $oHandler->setFormatter($oFormatter); - + self::$oLog->pushHandler($oHandler); } else { if (self::$bJSONLogs) {