From e2b412846dc44aec42d8f04c71746dee9a7faf91 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 21 May 2013 20:36:09 +0200 Subject: [PATCH] Add API version to Logger class --- src/Monolog/Logger.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Monolog/Logger.php b/src/Monolog/Logger.php index 0d58e78f..65f92575 100644 --- a/src/Monolog/Logger.php +++ b/src/Monolog/Logger.php @@ -76,6 +76,16 @@ class Logger implements LoggerInterface */ const EMERGENCY = 600; + /** + * Monolog API version + * + * This is only bumped when API breaks are done and should + * follow the major version of the library + * + * @var int + */ + const API = 1; + protected static $levels = array( 100 => 'DEBUG', 200 => 'INFO', @@ -331,7 +341,7 @@ class Logger implements LoggerInterface /** * Gets all supported logging levels. - * + * * @return array Assoc array with human-readable level names => level codes. */ public static function getLevels()