/** * Affiche directement le log via un echo * * @param string $pProfil * @param string $pType Type de log * @param int $pLevel Niveau du log * @param string $pDate Date au format YYYYMMDDHHMMSS * @param string $pMessage Message à logger * @param array $pArExtra Informations supplémentaires */ public function log($pProfil, $pType, $pLevel, $pDate, $pMessage, $pArExtra) { echo '<div style="background-color: white; border: solid red 1px; padding: 5px; margin: 5px;">'; echo '<font color="#969696">' . _i18n('copix:log.page.title', array('CopixLogPageStrategy', CopixLog::getLevel($pLevel), $pType)) . '<br />'; if (isset($pArExtra['file'])) { echo _i18n('copix:log.page.file', $pArExtra['file']); if (isset($pArExtra['line'])) { echo ' | ' . _i18n('copix:log.page.line', $pArExtra['line']); } echo '<br />'; } echo '</font>'; echo '<font color="black"><b>' . $pMessage . '</b></font>'; echo '</div>'; }