Exemple #1
0
 public function renderLogItemAsHtml(LogItem $log, $shortenUserMessages = true)
 {
     if (($log->getLogLevel() == LogHelper::LOG_USER_INFO || $log->getLogLevel() == LogHelper::LOG_USER_ERROR) && $shortenUserMessages) {
         return nl2br("<b>" . $this->getLogLevelAsString($log->getLogLevel()) . "</b>: " . $log->getMessage());
     }
     return nl2br("<b>" . $this->getLogLevelAsString($log->getLogLevel()) . "</b>: " . $log->getMessage() . "<br/>" . $log->getSource());
 }