Silverstripe 4 error log
问题 How can I log errors to file log in SilverStripe 4? I mean all errors causing 'Internal server error' info from SS In SilverStripe it was : SS_Log::add_writer(new SS_LogFileWriter('/var/log/silverstripe/errors.log'), SS_Log::ERR); Documentation says that I need to do something like: SilverStripe\Core\Injector\Injector: Psr\Log\LoggerInterface: calls: LogFileHandler: [ pushHandler, [ %$LogFileHandler ] ] LogFileHandler: class: Monolog\Handler\StreamHandler constructor: - "../silverstripe.log"