mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
Add API version to Logger class
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user