From fda912fe94d64188e6735ffea23c4a972739276d Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 4 Apr 2005 01:06:55 +0000 Subject: [PATCH] =?utf8?q?Se=20homogeinizan=20m=C3=A1s=20los=20logs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/examples/log.ini | 2 +- src/T/log.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/log.ini b/doc/examples/log.ini index 7cb42ee..bd9a5aa 100644 --- a/doc/examples/log.ini +++ b/doc/examples/log.ini @@ -64,7 +64,7 @@ formatter = mail args = ('localhost', 'from@example.com', 'to@example.com', '[SERCOM] Log') [formatter_file] -format = %(asctime)s %(name)5s[%(process)d] %(levelname)-8s %(message)s +format = %(asctime)s %(name)8s[%(process)d] %(levelname)-8s %(message)s datefmt = %c [formatter_stderr] diff --git a/src/T/log.php b/src/T/log.php index 4511b26..1fa5324 100644 --- a/src/T/log.php +++ b/src/T/log.php @@ -16,7 +16,7 @@ function logs($str, $level = INFO) { global $LOGLEVEL, $LOGFP, $argv; if ($str and ($LOGLEVEL & $level) == $level) { fputs($LOGFP, sprintf("%s %s[%d] %-8s %s\n", strftime('%c'), - substr(basename($argv[0]), 3), getmypid(), + sprintf('% 8s', substr(basename($argv[0]), 3)), getmypid(), loglevel2str($level), $str)); } } -- 2.43.0