X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/80b13bb9ba6f013d6c73546b464fc8923f3c700b..5fbd64ffbcf2259aed83351dcf00ee47a75ff931:/src/T/log.php?ds=sidebyside diff --git a/src/T/log.php b/src/T/log.php index 7941f63..1fa5324 100644 --- a/src/T/log.php +++ b/src/T/log.php @@ -16,7 +16,8 @@ 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'), - basename($argv[0]), getmypid(), loglevel2str($level), $str)); + sprintf('% 8s', substr(basename($argv[0]), 3)), getmypid(), + loglevel2str($level), $str)); } }