Janis Peisenieks
Janis Peisenieks

Reputation: 4998

How to get Zend_Log_Writer to write in a new row?

I have the following code:

$writer = new Zend_Log_Writer_Stream($path."/../../../../data/logs/Log.log");
$logger = new Zend_Log($writer); 
$logger->info(print_r($xm1,true));

The problem is, that every time it writes a log entry, it doesn't append it to a new row.

Ive tried

$logger->info("\n\r".print_r($xm1,true));

But this has the side effect of putting the date on one line, and starting the information on a new line.

So the question: How to do get the logger to write every entry on a new row?

Thanks!

Upvotes: 0

Views: 490

Answers (1)

sanders
sanders

Reputation: 10898

Do you open it with notepad on windows? Maybe you should try opening it with notepad++?

Upvotes: 1

Related Questions