Lines Matching +full:- +full:- +full:stderr
35 $this->facility = $facility;
40 if (in_array($facility, $dontlog)) $this->isLogging = false;
68 return self::getInstance(self::LOG_ERROR)->log(
87 return self::getInstance(self::LOG_DEBUG)->log(
106 return self::getInstance(self::LOG_DEPRECATED)->log(
127 if (!$this->isLogging) return false;
131 'facility' => $this->facility,
138 'logfile' => $this->getLogfile($datetime),
143 if ($event->advise_before()) {
144 $data['loglines'] = $this->formatLogLines($data);
146 $event->advise_after();
150 $data['loglines'] = $this->formatLogLines($data);
155 return $this->writeLogLines($data['loglines'], $data['logfile']);
168 return $this->isLogging;
179 $this->expected[] = $log;
206 $logline = date('Y-m-d H:i:s', $datetime) . "\t";
232 return $conf['logdir'] . '/' . $this->facility . '/' . date('Y-m-d', $date) . '.log';
246 if ($this->expected) {
247 $expected = array_shift($this->expected);
256 $stderr = fopen('php://stderr', 'w');
257 fwrite($stderr, "\n[" . $this->facility . '] ' . implode("\n", $lines) . "\n");
258 fclose($stderr);