![]() |
FRED™
3.0
FRED™: Framework for Rapid and Easy Development
|
Public Member Functions | |
| handler ($name) | |
| Get a handler. More... | |
| has ($name) | |
| Check if the log has a specific handler. More... | |
| add ($prio, $message, $filename=null, $line_no=null, $context=null) | |
| Add a message to the log. More... | |
| start ($prio, $message, $filename=null, $line_no=null, $context=null) | |
| Add a timer start message to the log. More... | |
| point ($id, $prio, $message, $filename=null, $line_no=null, $context=null, $type=' *point') | |
| Add a message to a timer. More... | |
| stop ($id, $prio=null, $message=null, $filename=null, $line_no=null, $context=null) | |
| Stop a timer message. More... | |
| __call ($func_name, $params) | |
| __invoke ($message, $filename=null, $line_no=null, $context=null) | |
Public Member Functions inherited from Component | |
| __construct ($fred, $config=null) | |
| __destruct () | |
| clientConfig () | |
| Public configuration. More... | |
| config ($key, $default=null) | |
| Retrieve a config value. More... | |
| ping () | |
| Ping function. More... | |
| filemtime ($filename) | |
| Filemtime with session cache. More... | |
| component ($name) | |
| Get a component (local or default). More... | |
| components (... $names) | |
| Get multiple components in an array. More... | |
Public Member Functions inherited from Thing | |
| propertyExists ($property) | |
| Check if a property exists (public or published). More... | |
| constants ($prefix=null) | |
| Return all constants. More... | |
| get ($key) | |
| Get one or more properties. More... | |
| set ($key, $value=null) | |
| Set one or more properties. More... | |
| __get ($key) | |
| __set ($key, $value) | |
Data Fields | |
| const | CUSTOM = 10 |
| Everything above this is only logged when exactly matched. More... | |
| const | EMERGENCY = 7 |
| System is unusable. More... | |
| const | ALERT = 6 |
| Action must be taken immediately. More... | |
| const | CRITICAL = 5 |
| Critical conditions. More... | |
| const | ERROR = 4 |
| Error conditions. More... | |
| const | WARNING = 3 |
| Warning conditions. More... | |
| const | NOTICE = 2 |
| Normal, but significant, condition. More... | |
| const | INFO = 1 |
| Informational message. More... | |
| const | DEBUG = 0 |
| Debug-level message. More... | |
| $handlers = [] | |
| Array with handlers (key = name, value = config). More... | |
| $convert = [] | |
| Convert the priority of some messages (key = reg-exp's for concatination of IP + '#' + user agent +. More... | |
| $break = null | |
| Reg-exp for message to throw an Exception on. More... | |
Data Fields inherited from Component | |
| $filemtimeTtl = 0 | |
Data Fields inherited from Thing | |
| const | HIDDEN = 0 |
| Property is hidden. More... | |
| const | READABLE = 1 |
| Property is readable. More... | |
| const | WRITEABLE = 2 |
| Property is writeable. More... | |
| const | READWRITE = 3 |
| Property is readable and writeable. More... | |
Protected Member Functions | |
| init () | |
| context ($filename, $line_no, $trace, $context) | |
| _get ($key) | |
| Default getter if no specific setter is defined, and the property is also not published (readable). More... | |
Protected Member Functions inherited from Component | |
| done () | |
| getSession () | |
Protected Member Functions inherited from Thing | |
| publish ($property, $visibility=self::READABLE) | |
| Publish a property (or hide it again). More... | |
| alias ($alias, $property, $object=null) | |
| Define an alias for a property (of another object). More... | |
| configure ($config) | |
| Configure the object. More... | |
| _set ($key, $value) | |
| Default setter if no specific setter is defined, and the property is also not published (writeable). More... | |
Protected Attributes | |
| $_busy = false | |
| $_timers = [] | |
Protected Attributes inherited from Component | |
| $_fred = null | |
| $_config = null | |
| $_name = null | |
| $_components = [] | |
| Local components (key = component name, value = component). More... | |
| $_session = null | |
Protected Attributes inherited from Thing | |
| $_published = [] | |
| Published properties (key = name of property, value = visibility). More... | |
| $_aliases = [] | |
| Alias properties (key = alias, value = [object,property]). More... | |
| __invoke | ( | $message, | |
$filename = null, |
|||
$line_no = null, |
|||
$context = null |
|||
| ) |
|
protected |
| add | ( | $prio, | |
| $message, | |||
$filename = null, |
|||
$line_no = null, |
|||
$context = null |
|||
| ) |
Add a message to the log.
| int | $prio | Priority of the message. Only if this priority surpasses a handlers minimum priority, the message is processed by the handler. |
| string | Exception | $message | Message to add (if this is an Exception all other parameters will be derived from it). |
| string | array | $filename | File from which the message originated (or context when no specific file). |
| int | $line_no | Line from which the message originated. |
| array | $context | Context for the message. If a key is prefixed with an '@' the value has to be a callback function that returns the real value. This is only done (once) when the message is processed by a handler. |
| handler | ( | $name | ) |
| has | ( | $name | ) |
| point | ( | $id, | |
| $prio, | |||
| $message, | |||
$filename = null, |
|||
$line_no = null, |
|||
$context = null, |
|||
$type = '*point' |
|||
| ) |
| start | ( | $prio, | |
| $message, | |||
$filename = null, |
|||
$line_no = null, |
|||
$context = null |
|||
| ) |
| stop | ( | $id, | |
$prio = null, |
|||
$message = null, |
|||
$filename = null, |
|||
$line_no = null, |
|||
$context = null |
|||
| ) |
| $convert = [] |
| $handlers = [] |
| const CUSTOM = 10 |