Plop
A simple logging library for PHP
Plop\RecordFactoryInterface Interface Reference

An interface for a factory that produces instances that implement the Plop::RecordInterface interface. More...

+ Inheritance diagram for Plop\RecordFactoryInterface:

Public Member Functions

 createRecord ($loggerNamespace, $loggerClass, $loggerMethod, $namespace, $class, $method, $level, $filename, $lineno, $msg, array $args,\Exception $exception=null)
 

Detailed Description

An interface for a factory that produces instances that implement the Plop::RecordInterface interface.

Definition at line 29 of file RecordFactoryInterface.php.

Member Function Documentation

Plop\RecordFactoryInterface::createRecord (   $loggerNamespace,
  $loggerClass,
  $loggerMethod,
  $namespace,
  $class,
  $method,
  $level,
  $filename,
  $lineno,
  $msg,
array  $args,
\Exception  $exception = null 
)

Create a new log record.

Parameters
string$loggerNamespaceNamespace associated with the logger that captured the log.
string$loggerClassClass associated with the logger that captured the log.
string$loggerMethodMethod of function associated with the logger that captured the log.
string$namespaceNamespace where the log was emitted.
string$classClass where the log was emitted.
string$methodMethod or function where the log was emitted.
int$levelLevel of the log record.
string$filenameFull path to the file where the log was emitted.
int$linenoLine number where the log was emitted.
string$msgLog message.
array$argsAssociative array of additional information to keep in the log record.
Exception | null$exceptionEither an exception that will be logged together with the rest of the record, or null in case there is no exception to log.
Return values
Plop::RecordInterfaceThe newly-created log record.

Implemented in Plop\RecordFactory.


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