|
| | 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...
|
| |
| | 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) |
| |
| | __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...
|
| |
| | 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) |
| |
|
| | init () |
| |
| | context ($filename, $line_no, $context) |
| |
| | _get ($key) |
| |
| | init () |
| |
| | done () |
| |
| | getSession () |
| |
| | publish ($property, $visibility=self::READABLE) |
| | Publish a property (or hide it again). More...
|
| |
| | configure ($config) |
| | Configure the object. More...
|
| |
| | _get ($key) |
| | Default getter if no specific setter is defined, and the property is also not published (readable). More...
|
| |
| | _set ($key, $value) |
| | Default setter if no specific setter is defined, and the property is also not published (writeable). More...
|
| |
Definition at line 5 of file Log.php.
◆ __call()
| __call |
( |
|
$func_name, |
|
|
|
$params |
|
) |
| |
◆ __invoke()
| __invoke |
( |
|
$message, |
|
|
|
$filename = null, |
|
|
|
$line_no = null, |
|
|
|
$context = null |
|
) |
| |
◆ _get()
◆ add()
| add |
( |
|
$prio, |
|
|
|
$message, |
|
|
|
$filename = null, |
|
|
|
$line_no = null, |
|
|
|
$context = null |
|
) |
| |
Add a message to the log.
- Parameters
-
| 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. |
Definition at line 71 of file Log.php.
◆ context()
| context |
( |
|
$filename, |
|
|
|
$line_no, |
|
|
|
$context |
|
) |
| |
|
protected |
◆ handler()
Get a handler.
- Parameters
-
| string | $name | Name of the handler. |
- Returns
- Log\Handler
Definition at line 39 of file Log.php.
◆ has()
Check if the log has a specific handler.
- Parameters
-
| string | $name | Name of the handler. |
- Returns
- bool True if the log has the specified handler.
Definition at line 52 of file Log.php.
◆ init()
◆ start()
| start |
( |
|
$prio, |
|
|
|
$message, |
|
|
|
$filename = null, |
|
|
|
$line_no = null, |
|
|
|
$context = null |
|
) |
| |
Add a timer start message to the log.
- Parameters
-
- Returns
- string Timer id.
Definition at line 118 of file Log.php.
◆ stop()
| stop |
( |
|
$id, |
|
|
|
$prio = null, |
|
|
|
$message = null, |
|
|
|
$filename = null, |
|
|
|
$line_no = null, |
|
|
|
$context = null |
|
) |
| |
Stop a timer message.
Empty parameters are copied from the start message.
- Parameters
-
| string | $id | Timer id. |
| int | $prio | See add(). |
| string | $message | See add(). |
| string | array | $filename | See add(). |
| int | $line_no | See add(). |
| array | $context | See add(). |
Definition at line 134 of file Log.php.
◆ $_busy
◆ $_timers
◆ $break
◆ $handlers
Array with handlers (key = name, value = config).
Definition at line 17 of file Log.php.
◆ $ignore
Reg-exp's for concatination of IP + '#' + user agent + '#' + filename + '#' + message to ignore.
Definition at line 18 of file Log.php.
◆ ALERT
Action must be taken immediately.
Definition at line 9 of file Log.php.
◆ CRITICAL
Critical conditions.
Definition at line 10 of file Log.php.
◆ CUSTOM
Everything above this is only logged when exactly matched.
Definition at line 7 of file Log.php.
◆ DEBUG
Debug-level message.
Definition at line 15 of file Log.php.
◆ EMERGENCY
System is unusable.
Definition at line 8 of file Log.php.
◆ ERROR
Error conditions.
Definition at line 11 of file Log.php.
◆ INFO
Informational message.
Definition at line 14 of file Log.php.
◆ NOTICE
Normal, but significant, condition.
Definition at line 13 of file Log.php.
◆ WARNING
Warning conditions.
Definition at line 12 of file Log.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/fred/src/Rsi/Fred/Log.php