21 class Cron extends \Monolog\Logger {
36 if (empty($interval) || !in_array($interval, $cron->getConfiguredIntervals(
true))) {
45 $logger =
new static(self::CHANNEL);
50 $formatter->allowInlineLineBreaks();
51 $formatter->ignoreEmptyContextAndExtra();
55 $handler->pushProcessor(
new MemoryUsageProcessor());
56 $handler->pushProcessor(
new MemoryPeakUsageProcessor());
57 $handler->pushProcessor(
new ProcessIdProcessor());
58 $handler->pushProcessor(
new TagProcessor([$interval]));
59 $handler->pushProcessor(
new PsrLogMessageProcessor());
Exception thrown if an argument is not of the expected type.
$params
Saves global plugin settings.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Custom logger for an individual cron interval.
_elgg_services()
Get the global service provider.
static factory(array $params=[])