95 $path = dirname(__DIR__);
97 'monologlogger' =>
$path .
'/class/monologlogger.php',
111 $key =
'system/module/configs/monolog';
118 $monolog_configs = $cache->read($key);
119 if ($monolog_configs!==
false) {
136 $logger->startTime();
137 $logger->startTime(
'XOOPS Boot');
149 if (class_exists(
'MonologLogger')) {
165 if (class_exists(
'MonologLogger')) {
183 'channel'=>
'Queries',
184 'query_time'=>$args[
'executionMS'],
185 'params'=>$args[
'params'],
186 'types'=>$args[
'types'],
203 $xoops->loadLanguage(
'main',
'monolog');
233 $logger->stopTime(
'XOOPS Boot');
234 $logger->startTime(
'Module init');
292 $template = $args[0];
296 sprintf(
'Cached (regenerates every %d seconds)', $theme->contentCacheLifetime)
312 $context = array(
'channel'=>
'Blocks',
'cached'=>$isCached,
'cachetime'=>$block->getVar(
'bcachetime'));
352 $logger->stopTime(
'Module init');
353 $logger->startTime(
'XOOPS output init');
366 $logger->stopTime(
'XOOPS output init');
367 $logger->startTime(
'Module display');
380 $logger->stopTime(
'Module display');
385 (
float) memory_get_usage(
true)/1000000,
386 (
float) memory_get_peak_usage(
true)/1000000
421 foreach ($logs as $log) {
422 $context = array(
'channel'=>
'Extra',
'name'=>$log[0]);
423 $logger->log(LogLevel::INFO, $log[1], $context);
436 $context = array(
'channel'=>
'Extra',
'name'=>$args[0]);
452 $key =
'system/module/configs/monolog';
454 if (isset($_REQUEST[
'monolog_enable'])) {
455 $cache->delete($key);
458 $configs[
'monolog_enable'] = (bool)
$helper->getConfig(
'monolog_enable');
459 $configs[
'include_blocks'] = (bool)
$helper->getConfig(
'include_blocks');
460 $configs[
'include_deprecated'] = (bool)
$helper->getConfig(
'include_deprecated');
461 $configs[
'include_extra'] = (bool)
$helper->getConfig(
'include_extra');
462 $configs[
'include_queries'] = (bool)
$helper->getConfig(
'include_queries');
463 $configs[
'include_timers'] = (bool)
$helper->getConfig(
'include_timers');
464 $configs[
'logging_threshold'] =
$helper->getConfig(
'logging_threshold');
static eventCoreHeaderEnd($args)
static eventCoreModuleAddlog($args)
const _MD_MONOLOG_MEM_USAGE
static eventCoreFooterEnd($args)
static eventCoreHeaderStart($args)
static eventCoreDatabaseQueryComplete($args)
static eventCoreThemeRenderStart($args)
static eventCoreDatabaseNoconn($args)
static eventSystemPreferencesSave($args)
const _MD_MONOLOG_INCLUDED_FILES
static eventCoreDatabaseNodb($args)
static eventCoreThemeCheckcacheSuccess($args)
static eventCoreThemeblocksBuildblockStart($args)
static eventCoreFooterStart($args)
static eventCoreIncludeCommonSecurity($args)
static eventCoreSecurityValidatetokenEnd($args)
static eventCoreDisableerrorreporting($args)
static eventCoreIncludeCommonAuthSuccess()
static eventCoreThemeRenderEnd($args)
static eventCoreDeprecated($args)
static eventCoreTemplateConstructStart($args)
static eventCoreIncludeCommonEnd($args)
static eventCoreIncludeCommonConfigsSuccess($args)
static eventCoreException($e)
static addMap(array $map)
static eventCoreIncludeCommonClassmaps($args)