db
ExtendedLoggerLoggingEvent Class Reference

Inherits LoggerLoggingEvent.

Public Member Functions

 __construct ($fqcn, $logger, \LoggerLevel $level, $message, $timeStamp=null, $throwable=null)
 
 getLocationInformation ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $fqcn,
  $logger,
\LoggerLevel  $level,
  $message,
  $timeStamp = null,
  $throwable = null 
)

Instantiate a LoggingEvent from the supplied parameters.

Except $timeStamp all the other fields of LoggerLoggingEvent are filled when actually needed.

Parameters
string$fqcnname of the caller class.
mixed$loggerThe Logger category of this event or the logger name.
LoggerLevel$levelThe level of this event.
mixed$messageThe message of this event.
integer$timeStampthe timestamp of this logging event.
Exception$throwableThe throwable associated with logging event

Member Function Documentation

◆ getLocationInformation()

getLocationInformation ( )

Set the location information for this logging event. The collected information is cached for future use.

This method uses debug_backtrace() function (if exists) to collect informations about caller.

It only recognize informations generated by Logger and its subclasses.

Returns
LoggerLocationInfo

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