This might be a too simple question for someone. How can I get a line break in my .log file by using Mage::log()
? Whatever I pass to log() it treats as a string. Any help would be appreciated.
2 Answers
Just pass a Linux line break with double quotes
"\n"
Or if you are dumping an array, use a print method
print_r($array, true);
Instead of "\n" you can just use
PHP_EOL
So you could type something like:
Mage::log(PHP_EOL.$your_message);