Skip to content

Commit 2486286

Browse files
Minor fix.
Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
1 parent bf2ac68 commit 2486286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GlobalLogger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public static function logger(): LoggerInterface {
3737
}
3838

3939
$outLogger = null;
40-
if ($format === 'stdout') {
40+
if ($format === 'json') {
41+
$outLogger = new JsonLogger();
42+
} else {
4143
$outLogger = new StdLogger(
4244
StdLogger::DEFAULT_FORMAT,
4345
"Y-m-d H:i:s.v"
4446
);
45-
} else if ($format = 'json') {
46-
$outLogger = new JsonLogger();
4747
}
4848

4949
$logger = new MultiLogger([

0 commit comments

Comments
 (0)