Jump to content

Add Newline Character To Php/apache Error_log?


chibineku
 Share

Recommended Posts

I can manually made my apache error log take a new line by concatenating ."\r\n" to the end of any error_log statement, but how do I make automatic error messages take a new line? I have error reporting on all, and I get warnings if I check for a variable presence and it's not set, as happens on a lot of pages, and I get this huge amorphous mess of errors. Any way to make that happen automatically?

Edited by chibineku
Link to comment
Share on other sites

It should be adding newlines automatically. If you're opening the logs in Notepad, try a different editor. I don't think Notepad allows just \n as a newline. Wordpad will read the files correctly, there are also several programming editors that won't have an issue.

Link to comment
Share on other sites

Ah, right you are - it opened in notepad automatically, but it's fine in ConTEXT.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...