"\n" doesnt work in error_log and windows?

From: Date: Fri, 09 Apr 2004 14:39:48 +0000
Subject: "\n" doesnt work in error_log and windows?
Groups: php.general 
Request: Send a blank email to php-general+get-182983@lists.php.net to get a copy of this message
i have this sort of a log string: error_log("\n".$date.":".$_SESSION['username'].":Logged in:normal login\n", 3, $LogPath."admin.log"); problem is when it writes the entry in a file the first one shows up fine but when you get 2 or more in it then it either strings the lines together (the second entry will start on the same line as the one before it) so i added the "\n" at the front of it to force the next one to the next line... this works but now there is a "blank" space before each entry and its annoying... how to fix??

« previous php.general (#182983) next »