4571 Posts in 1383 Topics by 1376 members
| Go to End | ||
| Author | Topic: | 2600 Views |
-
Re: ScriptAlias

20 March 2010 at 11:20am Last edited: 20 March 2010 11:57am
For anyone too lazy to search for ss_log.php (which is actually log.php) to read the class notes before searching the forums like me, the now depreciated code
Debug::log_errors_to("/my/logfile/path");
can be replaced with
SS_Log::add_writer(new SS_LogFileWriter(Director::baseFolder() . '/error_log.txt'), SS_Log::ERR);
SS_Log::add_writer(new SS_LogFileWriter(Director::baseFolder() . '/error_log.txt'), SS_Log::NOTICE);
SS_Log::add_writer(new SS_LogFileWriter(Director::baseFolder() . '/error_log.txt'), SS_Log::WARN);Saves you a couple of minutes.
| 2600 Views | ||
| Go to Top |

