|
@@ 54-63 (lines=10) @@
|
| 51 |
|
{ |
| 52 |
|
use LoggerProvider; |
| 53 |
|
|
| 54 |
|
private function getLogger(string $configPath) |
| 55 |
|
{ |
| 56 |
|
$manager = new LoggerConfigurationManager($configPath); |
| 57 |
|
$manager->load(); |
| 58 |
|
Logger::init($manager->getConfig()); |
| 59 |
|
$instance = Logger::getInstance(); |
| 60 |
|
$instance->setOutputter([new FileOutputter("/tmp/webstream.logtest.log"), new ConsoleOutputter()]); |
| 61 |
|
|
| 62 |
|
return new LoggerAdapter($instance); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
private function getLotateLogger(string $configPath) |
| 66 |
|
{ |
|
@@ 65-74 (lines=10) @@
|
| 62 |
|
return new LoggerAdapter($instance); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
private function getLotateLogger(string $configPath) |
| 66 |
|
{ |
| 67 |
|
$manager = new LoggerConfigurationManager($configPath); |
| 68 |
|
$manager->load(); |
| 69 |
|
Logger::init($manager->getConfig()); |
| 70 |
|
$instance = Logger::getInstance(); |
| 71 |
|
$instance->setOutputter([new FileOutputter("/tmp/webstream.logtest.log")]); |
| 72 |
|
|
| 73 |
|
return new LoggerAdapter($instance); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
private function assertLog($level, $msg, $logLine) |
| 77 |
|
{ |