8 use Monolog\Handler\RotatingFileHandler;
9 use Monolog\Handler\StreamHandler;
10 use Monolog\Processor\MemoryPeakUsageProcessor;
11 use Monolog\Processor\MemoryUsageProcessor;
12 use Monolog\Processor\ProcessIdProcessor;
13 use Monolog\Processor\PsrLogMessageProcessor;
14 use Monolog\Processor\TagProcessor;
21 class Cron extends \Monolog\Logger {
36 if (empty($interval) || !in_array($interval, $cron->getConfiguredIntervals(
true))) {
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());
$params
Saves global plugin settings.
Locate the relative path of an entity's data dir.
Exception thrown if an argument is not of the expected type.
Custom logger for an individual cron interval.
static factory(array $params=[])
Find Elgg and project paths.
_elgg_services()
Get the global service provider.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.