2.0.2 (2022-02-15)

- Replace strftime with strtotime for PHP8.1 support
- Added processing class into proc line for easier debugging
This commit is contained in:
Daniel Mason 2022-02-15 09:07:24 +13:00
parent 3d869bf653
commit ac044747aa
5 changed files with 15 additions and 9 deletions

View file

@ -47,7 +47,7 @@ class Log extends \Psr\Log\AbstractLogger
if (array_search($level, $logLevels) <= array_search($this->logLevel, $logLevels)) {
fwrite(
STDOUT,
'[' . $level . '][' . strftime('%Y-%m-%d %T') . '] ' .
'[' . $level . '][' . date('Y-m-d H:i:s') . '] ' .
$this->interpolate($message, $context) . PHP_EOL
);
}