| 1 | <?php |
||
| 11 | class Logger extends Monologer |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * The log file |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $file; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The log level |
||
| 21 | * @var int|string |
||
| 22 | */ |
||
| 23 | protected $level; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var OutputInterface |
||
| 27 | */ |
||
| 28 | protected $output; |
||
| 29 | |||
| 30 | public function __construct($level, $file, OutputInterface $output) |
||
| 37 | |||
| 38 | protected function createHandlers() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Gets the log level |
||
| 48 | * @return int|string |
||
| 49 | */ |
||
| 50 | public function getLevel() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getFile() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return OutputInterface |
||
| 65 | */ |
||
| 66 | public function getOutput() |
||
| 70 | } |