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]
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));
}
}