Index: Slim/Utils/Misc.pm =================================================================== --- Slim/Utils/Misc.pm (revision 4365) +++ Slim/Utils/Misc.pm (working copy) @@ -880,11 +880,14 @@ sub msg { use bytes; - my $entry = strftime "%Y-%m-%d %H:%M:%S.", localtime; - my $now = int(Time::HiRes::time() * 10000); - $entry .= (substr $now, -4) . " "; - $entry .= shift; + my $entry = shift; + if ( !$::noLogTimestamp ) { + my $now = substr(int(Time::HiRes::time() * 10000),-4); + $entry = strftime( "%Y-%m-%d %H:%M:%S.", localtime ) + . $now . " " . $entry; + } + print STDERR $entry; if (Slim::Utils::Prefs::get('livelog')) { Index: slimserver.pl =================================================================== --- slimserver.pl (revision 4365) +++ slimserver.pl (working copy) @@ -339,6 +339,7 @@ $localClientNetAddr $localStreamAddr $newVersion + $noLogTimestamp $pidfile $prefsfile $priority @@ -692,6 +693,7 @@ --cachedir => Directory for SlimServer to save cached music and web data --diag => Use diagnostics, shows more verbose errors. Also slows down library processing considerably --logfile => Specify a file for error logging. + --noLogTimestamp => Don't add timestamp to log output --daemon => Run the server in the background. This may only work on Unix-like systems. --stdio => Use standard in and out as a command line interface @@ -799,6 +801,7 @@ 'httpaddr=s' => \$httpaddr, 'httpport=s' => \$httpport, 'logfile=s' => \$logfile, + 'noLogTimestamp' => \$noLogTimestamp, 'audiodir=s' => \$audiodir, 'playlistdir=s' => \$playlistdir, 'cachedir=s' => \$cachedir,