X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/64d44b6ffeffcc3324c3b717f59401af5384cd0f..7f32a60f31bd104bc04c102bf6c66dd2af7220e7:/src/T/log.php 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)); } }