src/Log/EcontrolLogger.php 1 location
|
@@ 43-51 (lines=9) @@
|
40 |
|
|
41 |
|
$logger = new Logger("econtrol"); |
42 |
|
|
43 |
|
if ( empty($level) ) { |
44 |
|
|
45 |
|
$logger->pushHandler(new NullHandler(self::getLevel("ERROR"))); |
46 |
|
|
47 |
|
} else { |
48 |
|
|
49 |
|
$logger->pushHandler(new ConsoleHandler(self::getLevel($level))); |
50 |
|
|
51 |
|
} |
52 |
|
|
53 |
|
return $logger; |
54 |
|
|
src/Log/ExtenderLogger.php 1 location
|
@@ 71-79 (lines=9) @@
|
68 |
|
|
69 |
|
$logger->pushHandler(new ConsoleHandler(self::getLevel("DEBUG"))); |
70 |
|
|
71 |
|
} else if ( $verbose ) { |
72 |
|
|
73 |
|
$logger->pushHandler(new ConsoleHandler(self::getLevel("NOTICE"))); |
74 |
|
|
75 |
|
} else { |
76 |
|
|
77 |
|
$logger->pushHandler(new NullHandler($level)); |
78 |
|
|
79 |
|
} |
80 |
|
|
81 |
|
return $logger; |
82 |
|
|