Jump to content

Error Logs to another drive


grasperstail

Recommended Posts

I use this to write to an error log:

error_reporting(E_ALL);ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'error.log');ini_set('html_errors', 0);ini_set('log_errors', 1);ini_set('display_errors', 0);

That will set it to a file called "error.log" in the same directory, but that's an absolute path so I assume you should be able to substitute any absolute path there. The PHP process just needs write permission to wherever you're writing to. Is it a physical drive or virtual (mapped) drive?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...