function queryEnd($query) { if (!$this->config['enabled'] || !$this->config['trace_queries']) { return; } ConsolePlugin::Log('Query End', 'no-important', '-'); }
private function handleGenericError($message, $file, $line, $type) { if ($this->plugin->isEnabled('Console')) { ConsolePlugin::Log($message, $type, null, $type != 'notice', $type == 'notice' ? 4 : 5); if ($type == 'error') { $this->plugin->Console->finalize(); } } elseif (AppConfig::DEBUG_MODE) { $this->show("{$message} ({$file} on line {$line})"); } else { $this->log("{$message} ({$file} on line {$line})", E_ERROR); } }
function Console($content, $type = 'info', $context = null, $add_backtrace = false) { ConsolePlugin::Log($content, $type, $context, $add_backtrace, 2); }