How can I make sure that this path:
new Zend_Log_Writer_Stream(APPLICATION_PATH . \'\\logs\\app.log\')
works both on linux and on windows
You can also use DIRECTORY_SEPARATOR constant instead of \ or /. Usually you'll want to redefine it to have shorter name, like
DIRECTORY_SEPARATOR
\
/
define('DS', DIRECTORY_SEPARATOR); $filename = APP . DS . 'logs' . DS . 'file.txt';