Class Log
Driver-based logging interface with support for chaining.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Log
Direct known subclasses
Namespace: Core
Package: Core\Log
Since: 3.1
Requires: PHP 5.3
Version: 1.1
Located at Log.inc.php
Methods summary
protected
|
|
public
true|array
|
#
__invoke( string $priority, string $component, string $message, array $infoSet = null, array $sourceInfo = null )
Object invocation is an alias for the report()] method. |
protected
string
|
#
_formatUnifiedString( string $ident, string $component, string $message, array $infoSet = null, array $sourceInfo = null )
Formats a single string from log components. Should be used whenever
components need to be unified into a single string. Also performs message
postprocessing for generic placeholders, e.g. replaces |
abstract protected
true|mixed
|
#
_report( string $priority, string $ident, string $component, string $message, array $infoSet = null, array $sourceInfo = null )
Actual logger method implemented by drivers to process a new log entry. |
public static
|
|
public
integer|boolean
|
#
chain(
Connects another object to the current object. Usage depends on the actual class implementation; common examples are lazy configuration completion or layer expansions. |
public
string
|
|
public
true|mixed
|
#
report( string $priority, string $component, string $message, array $infoSet = null, array $sourceInfo = null )
Creates a new log entry. |
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
string |
Emergency
Emergency report priority, indicates that the system is unusable. |
#
'X'
|
string |
Alert
Significant report priority, immediate action required. |
#
'A'
|
string |
Critical
Critical report priority, system failure possible. |
#
'C'
|
string |
Error
Error report priority, application error conditions met. |
#
'E'
|
string |
Warning
Warning report priority, application warning conditions met. |
#
'W'
|
string |
Notice
Normal report priority, an at least significant condition is met. |
#
'N'
|
string |
Info
Info report priority. |
#
'I'
|
string |
Debug
Debug report priority, should be used for debugging only. |
#
'D'
|
string |
AcceptPriorityParameter
Configuration parameter to restrict logger to a given list of priorities. |
#
'accept-priority'
|
string |
IdentParameter
Application identifier passed on to back-end driver. |
#
'ident'
|
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_v_parameters
Driver configuration parameters. |
|
protected
|
$_v_successor
Subsequent (chained) log system layer, if any. |
Magic properties
public read-only
string
|
$ident
Configured application ident string. |
public read-only
|
$successor
Successor instance of logger chain. |