1 | <?php |
||
3 | class Ajde_Log extends Ajde_Object_Static |
||
4 | { |
||
5 | const CHANNEL_EXCEPTION = 'Exception'; |
||
6 | const CHANNEL_ERROR = 'Error'; |
||
7 | const CHANNEL_ROUTING = 'Routing'; |
||
8 | const CHANNEL_SECURITY = 'Security'; |
||
9 | const CHANNEL_INFO = 'Info'; |
||
10 | const CHANNEL_APPLICATION = 'Application'; |
||
11 | |||
12 | const LEVEL_EMERGENCY = '1:Emergency'; |
||
13 | const LEVEL_ALERT = '2:Alert'; |
||
14 | const LEVEL_CRITICAL = '3:Critical'; |
||
15 | const LEVEL_ERROR = '4:Error'; |
||
16 | const LEVEL_WARNING = '5:Warning'; |
||
17 | const LEVEL_NOTICE = '6:Notice'; |
||
18 | const LEVEL_INFORMATIONAL = '7:Informational'; |
||
19 | const LEVEL_DEBUG = '8:Debug'; |
||
20 | |||
21 | private static function getWriters() |
||
31 | |||
32 | private static function shouldLog($level) |
||
39 | |||
40 | public static function _( |
||
63 | |||
64 | public static function d($message, $description = '') |
||
68 | |||
69 | public static function log($string) |
||
73 | } |
||
74 |