Jump to:

4571 Posts in 1383 Topics by 1376 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » ScriptAlias

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2600 Views
  • timwjohn
    Avatar
    Community Member
    94 Posts

    Re: ScriptAlias Link to this post

    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
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.