CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
FannieBaseLogger Class Reference

Public Member Functions

 emergency ($message, array $context=array())
 
 alert ($message, array $context=array())
 
 critical ($message, array $context=array())
 
 error ($message, array $context=array())
 
 warning ($message, array $context=array())
 
 notice ($message, array $context=array())
 
 info ($message, array $context=array())
 
 debug ($message, array $context=array())
 
 log ($level, $message, array $context=array())
 
 getLogLocation ($int_level)
 

Public Attributes

const EMERGENCY = 0
 
const ALERT = 1
 
const CRITICAL = 2
 
const ERROR = 3
 
const WARNING = 4
 
const NOTICE = 5
 
const INFO = 6
 
const DEBUG = 7
 

Protected Member Functions

 normalizeLevel ($level)
 

Protected Attributes

 $log_level_map
 

Detailed Description

Logging class that matches the spec for PSR-3 LoggerInterface If the actual interface definition is available via composer FannieLogger formally implements it; otherwise it just contains the same public methods. Either way the actual functionality is inherited from FannieBaseLogger.

This is not in use yet. Just planning ahead to be more in-line with modern standards and best practices.

Member Function Documentation

FannieBaseLogger::getLogLocation (   $int_level)

Get filename for log

Parameters
[integer]log level constant
Returns
[string] filename or [boolean] false

Member Data Documentation

FannieBaseLogger::$log_level_map
protected
Initial value:
= array(
0 => 'emergency',
1 => 'alert',
2 => 'critical',
3 => 'error',
4 => 'warning',
5 => 'notice',
6 => 'info',
7 => 'debug',
)

The documentation for this class was generated from the following file: