/** * Initially called - this sets up the log writer to use the concrete5 * Logs database table (this is the default setting.) */ public function addDatabaseHandler() { $handler = new DatabaseHandler(); // set a more basic formatter. $output = "%message%"; $formatter = new LineFormatter($output, null, true); $handler->setFormatter($formatter); $this->pushHandler($handler); }
/** * Initially called - this sets up the log writer to use the concrete5 * Logs database table (this is the default setting.) */ public function addDatabaseHandler($logLevel = MonologLogger::DEBUG) { $handler = new DatabaseHandler($logLevel); // set a more basic formatter. $output = "%message%"; $formatter = new LineFormatter($output, null, true); $handler->setFormatter($formatter); $this->pushHandler($handler); }