Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-01 04:17:55 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-01 04:17:55 +0300
commit598d56e4d9d74c76fbfbfbe96a9f0af56a69bf15 (patch)
tree40a3cfdba17a77d915a0456b687a42fabdf0670b /core/Log.php
parenta726a1f907bd60945934cbf68f031c8507a3bf95 (diff)
#6622 Logger refactoring: removed now useless constants + updated phpdoc
Diffstat (limited to 'core/Log.php')
-rw-r--r--core/Log.php14
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';
/**