logger : add a <br/> to messages displayed on screen to allow the traces to be readable

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2253 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2015-08-14 13:49:48 +00:00
parent 9381836a32
commit 521540bc1c

View File

@@ -239,6 +239,8 @@ class logger
ini_set ("date.timezone", $this->timezone);
$message = date ("Y/m/d H:i:s")." [".$this->priorities[$priority]."] ".
$message;
if (php_sapi_name () !== "cli")
$message = nl2br ($message);
echo "$message";
if (php_sapi_name () !== "cli")
echo "</tt><br/>";