diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-01 04:17:55 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-01 04:17:55 +0300 |
commit | 598d56e4d9d74c76fbfbfbe96a9f0af56a69bf15 (patch) | |
tree | 40a3cfdba17a77d915a0456b687a42fabdf0670b /core/Log.php | |
parent | a726a1f907bd60945934cbf68f031c8507a3bf95 (diff) |
#6622 Logger refactoring: removed now useless constants + updated phpdoc
Diffstat (limited to 'core/Log.php')
-rw-r--r-- | core/Log.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/core/Log.php b/core/Log.php index 904cdb0f83..4091fa532d 100644 --- a/core/Log.php +++ b/core/Log.php @@ -55,12 +55,8 @@ use Piwik\Db; * * ### Custom message formatting * - * If you'd like to format log messages differently for different backends, you can use - * one of the `'Log.format...Message'` events. - * - * These events are fired when an object is logged. You can create your own custom class - * containing the information to log and listen to these events to format it correctly for - * different backends. + * If you'd like to format log messages differently for different backends, you can + * implement a new `Piwik\Log\Formatter\Formatter`. * * If you don't care about the backend when formatting an object, implement a `__toString()` * in the custom class. @@ -115,12 +111,6 @@ class Log extends Singleton const LOGGER_FILE_PATH_CONFIG_OPTION = 'logger_file_path'; const STRING_MESSAGE_FORMAT_OPTION = 'string_message_format'; - const FORMAT_FILE_MESSAGE_EVENT = 'Log.formatFileMessage'; - - const FORMAT_SCREEN_MESSAGE_EVENT = 'Log.formatScreenMessage'; - - const FORMAT_DATABASE_MESSAGE_EVENT = 'Log.formatDatabaseMessage'; - const GET_AVAILABLE_WRITERS_EVENT = 'Log.getAvailableWriters'; /** |