Plop
A simple logging library for PHP
|
An interface for a factory that produces instances that implement the Plop::RecordInterface interface. More...
Public Member Functions | |
createRecord ($loggerNamespace, $loggerClass, $loggerMethod, $namespace, $class, $method, $level, $filename, $lineno, $msg, array $args,\Exception $exception=null) | |
An interface for a factory that produces instances that implement the Plop::RecordInterface interface.
Definition at line 29 of file RecordFactoryInterface.php.
Plop\RecordFactoryInterface::createRecord | ( | $loggerNamespace, | |
$loggerClass, | |||
$loggerMethod, | |||
$namespace, | |||
$class, | |||
$method, | |||
$level, | |||
$filename, | |||
$lineno, | |||
$msg, | |||
array | $args, | ||
\Exception | $exception = null |
||
) |
Create a new log record.
string | $loggerNamespace | Namespace associated with the logger that captured the log. |
string | $loggerClass | Class associated with the logger that captured the log. |
string | $loggerMethod | Method of function associated with the logger that captured the log. |
string | $namespace | Namespace where the log was emitted. |
string | $class | Class where the log was emitted. |
string | $method | Method or function where the log was emitted. |
int | $level | Level of the log record. |
string | $filename | Full path to the file where the log was emitted. |
int | $lineno | Line number where the log was emitted. |
string | $msg | Log message. |
array | $args | Associative array of additional information to keep in the log record. |
Exception | null | $exception | Either an exception that will be logged together with the rest of the record, or null in case there is no exception to log. |
Plop::RecordInterface | The newly-created log record. |
Implemented in Plop\RecordFactory.