Esempio n. 1
0
 public function __construct(int $level, bool $showTimestamps = true)
 {
     parent::__construct($level);
     $this->format = $showTimestamps ? '[%2$s] %1$s' : '%s';
 }
Esempio n. 2
0
 public function __construct(int $logLevel, string $filename)
 {
     parent::__construct($logLevel);
     $this->handle = openFile($filename, 'a');
     $this->writeQueue = new Queue();
 }