I am trying to setup a log file to send variables to it, but nothing i do is working, please can you help, i have read all i can and tried multiple solutions and still nothing, heres what i have: -
_config.php
ini_set("display_errors", 1);
ini_set("log_errors", "On");
ini_set("error_log", "log/silverstripe.log");
SS_Log::add_writer(new SS_LogFileWriter('log/silverstripe.log'), SS_Log::WARN, '>');
php class :-
public function messageTest(){
SS_Log::log("Message Log test", SS_Log::WARN);
}
The log folder is already there but the log itself isnt being created, although when an actual php warning occurs then the log is updated.
Thanks in advance for your help