Lines Matching +full:- +full:- +full:stderr

24 …/** @var array PSR-3 compatible loglevels and their prefix, color, output channel, enabled status …
53 'channel' => STDERR,
59 'channel' => STDERR,
65 'channel' => STDERR,
71 'channel' => STDERR,
77 'channel' => STDERR,
97 $this->setLogLevel($this->logdefault);
98 $this->colors = new Colors();
99 $this->options = new Options($this->colors);
128 …* and finally executes main() - Each part is split into their own protected function below, so beh…
139 $this->setup($this->options);
140 $this->registerDefaultOptions();
141 $this->parseOptions();
142 $this->handleDefaultOptions();
143 $this->setupLogging();
144 $this->checkArguments();
145 $this->execute();
148 // region run handlers - for easier overriding
155 $this->options->registerOption(
160 $this->options->registerOption(
161 'no-colors',
164 $this->options->registerOption(
166 …'Minimum level of messages to display. Default is ' . $this->colors->wrap($this->logdefault, Color…
178 if ($this->options->getOpt('no-colors')) {
179 $this->colors->disable();
181 if ($this->options->getOpt('help')) {
182 echo $this->options->help();
192 $level = $this->options->getOpt('loglevel', $this->logdefault);
193 $this->setLogLevel($level);
201 $this->options->parseOptions();
209 $this->options->checkArguments();
217 $this->main($this->options);
231 if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
233 foreach (array_keys($this->loglevel) as $l) {
235 $this->loglevel[$l]['enabled'] = $enable;
247 if (!isset($this->loglevel[$level])) $this->fatal('Unknown log level');
248 return $this->loglevel[$level]['enabled'];
262 …$this->logMessage('debug', get_class($error) . ' caught in ' . $error->getFile() . ':' . $error->g…
263 $this->logMessage('debug', $error->getTraceAsString());
264 $code = $error->getCode();
265 $error = $error->getMessage();
272 $this->logMessage('critical', $error, $context);
277 * Normal, positive outcome (This is not a PSR-3 level)
284 $this->logMessage('success', $string, $context);
295 if (!isset($this->loglevel[$level])) $level = 'error';
297 $info = $this->loglevel[$level];
298 if (!$this->isLogLevelEnabled($level)) return; // no logging for this level
300 $message = $this->interpolate($message, $context);
303 if ($this->colors->isEnabled()) {
307 $this->colors->ptln($message, $info['color'], $info['channel']);