global $LOGLEVEL, $LOGFP, $argv;
if ($str and ($LOGLEVEL & $level) == $level) {
fputs($LOGFP, sprintf("%s %s[%d] %-8s %s\n", strftime('%c'),
global $LOGLEVEL, $LOGFP, $argv;
if ($str and ($LOGLEVEL & $level) == $level) {
fputs($LOGFP, sprintf("%s %s[%d] %-8s %s\n", strftime('%c'),