From a0d01542a6f608047cdb7a4ea2b143a0eeae2ca1 Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Fri, 20 Jan 2017 11:56:13 +1300 Subject: [PATCH] Remove examples of Log::::add_writer() (fixes #6346) Log::add_writer() has been removed in SilverStripe 4.0.0. --- src/Logging/Log.php | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/Logging/Log.php b/src/Logging/Log.php index 2e79e2e2a..f25fb8e50 100644 --- a/src/Logging/Log.php +++ b/src/Logging/Log.php @@ -18,36 +18,7 @@ use SilverStripe\Dev\Deprecation; * - Log::NOTICE * - Log::INFO * - Log::DEBUG - * - * You can add an error writer by calling {@link Log::add_writer()} - * - * Example usage of logging errors by email notification: - * - * Log::add_writer(new LogEmailWriter('my@email.com'), Log::ERR); - * - * - * Example usage of logging errors by file: - * - * Log::add_writer(new LogFileWriter('/var/log/silverstripe/errors.log'), Log::ERR); - * - * - * Example usage of logging at warnings and errors by setting the priority to '<=': - * - * Log::add_writer(new LogEmailWriter('my@email.com'), Log::WARN, '<='); - * - * - * Each writer object can be assigned a formatter. The formatter is - * responsible for formatting the message before giving it to the writer. - * {@link LogErrorEmailFormatter} is such an example that formats errors - * into HTML for human readability in an email client. - * - * Formatters are added to writers like this: - * - * $logEmailWriter = new LogEmailWriter('my@email.com'); - * $myEmailFormatter = new MyLogEmailFormatter(); - * $logEmailWriter->setFormatter($myEmailFormatter); - * - */ +*/ class Log {