Class LoggerLoggingEvent

Description

The internal representation of logging event.

The internal representation of logging event.

Located in Program_Root/src/log4php/spi/LoggerLoggingEvent.php (line 37)


	
			
Variable Summary
Method Summary
LoggerLoggingEvent LoggerLoggingEvent (string $fqcn, object $logger, mixed $priority, mixed $message, [integer $timeStamp = null], integer $level, integer $timeStampMSecs)
void getLevel ()
void getLoggerName ()
void getMDC (mixed $key)
void getMessage ()
void getNDC ()
void getStartTime ()
void getThreadName ()
void getTimeStamp ()
void toString ()
Variables
mixed $categoryName (line 52)

The category (logger) name.

The category (logger) name.

  • deprecated: This field will be marked as private in future releases. Please do not access it directly. Use the #getLoggerName method instead.
mixed $fqcn (line 42)

name of the calling category class.

name of the calling category class.

mixed $level (line 67)

Level of logging event. is a flyweight. declared final either.

Level of logging event. Level cannot be serializable because it is a flyweight. Due to its special seralization it cannot be declared final either. This field should not be accessed directly. You shoud use the #getLevel method instead.

  • deprecated: This field will be marked as private in future releases. Please do not access it directly. Use the #getLevel method instead.
mixed $locationInfo = null (line 119)

Location information for the caller.

Location information for the caller.

mixed $mdcCopyLookupRequired = true (line 90)

Have we tried to do an MDC lookup? If we did, there is no need to do it again. serialized.

Have we tried to do an MDC lookup? If we did, there is no need to do it again. Note that its value is always false when serialized. See also the getMDC and getMDCCopy methods.

mixed $message (line 95)
  • var: The application supplied message of logging event.
mixed $ndc (line 72)

The nested diagnostic context (NDC) of logging event.

The nested diagnostic context (NDC) of logging event.

mixed $ndcLookupRequired = true (line 84)

Have we tried to do an NDC lookup? If we did, there is no need to do it again. serialized. (incorrect) NDC.

Have we tried to do an NDC lookup? If we did, there is no need to do it again. Note that its value is always false when serialized. Thus, a receiving SocketNode will never use it's own (incorrect) NDC. See also writeObject method.

mixed $renderedMessage (line 101)

The application supplied message rendered through the log4php objet rendering mechanism.

The application supplied message rendered through the log4php objet rendering mechanism. At present renderedMessage == message.

mixed $threadName = null (line 107)

The name of thread in which this logging event was generated.

The name of thread in which this logging event was generated. log4php saves here the process id via http://www.php.net/getmypid

float $timeStamp (line 114)

The number of seconds elapsed from 1/1/1970 until logging event was created plus microseconds if available.

The number of seconds elapsed from 1/1/1970 until logging event was created plus microseconds if available.

Methods
Constructor LoggerLoggingEvent (line 143)

Instantiate a LoggingEvent from the supplied parameters.

Instantiate a LoggingEvent from the supplied parameters. Except #timeStamp all the other fields of


1 LoggerLoggingEvent
are filled when actually needed.

LoggerLoggingEvent LoggerLoggingEvent (string $fqcn, object $logger, mixed $priority, mixed $message, [integer $timeStamp = null], integer $level, integer $timeStampMSecs)
  • string $fqcn: name of the caller class.
  • object $logger: The category of this event.
  • integer $level: The level of this event.
  • mixed $message: The message of this event.
  • integer $timeStamp: the timestamp of this logging event.
  • integer $timeStampMSecs: the timestamp milliseconds of this logging event.
getLevel (line 203)

Return the level of this event. accessing the


1 level
field.

Return the level of this event. Use this form instead of directly accessing the


1 level
field.

void getLevel ()
getLocationInformation (line 169)

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

Set the location information for this logging event. The collected information is cached for future use. This method uses http://www.php.net/debug_backtrace function (if exists) to collect informations about caller.

It only recognize informations generated by Logger and its subclasses.

void getLocationInformation ()
getLoggerName (line 212)

Return the name of the logger. accessing the


1 categoryName
field.

Return the name of the logger. Use this form instead of directly accessing the


1 categoryName
field.

void getLoggerName ()
getMDC (line 254)

Returns the the context corresponding to the


1 key
parameter.

Returns the the context corresponding to the


1 key
parameter.

void getMDC (mixed $key)
getMessage (line 225)

Return the message for this logging event.

Return the message for this logging event. Before serialization, the returned object is the message passed by the user to generate the logging event. After serialization, the returned value equals the String form of the message possibly after object rendering.

void getMessage ()
getNDC (line 240)

This method returns the NDC for this event. correct content even if the event was generated in a different thread or even on a different machine. should never be called directly.

This method returns the NDC for this event. It will return the correct content even if the event was generated in a different thread or even on a different machine. The LoggerNDC::get() method should never be called directly.

void getNDC ()
getRenderedMessage (line 259)
void getRenderedMessage ()
getStartTime (line 283)

Returns the time when the application started, in seconds elapsed since 01.

Returns the time when the application started, in seconds elapsed since 01.01.1970.

  • static:
void getStartTime ()
getThreadName (line 303)
void getThreadName ()
getThrowableInformation (line 310)
void getThrowableInformation ()
getTimeStamp (line 298)
void getTimeStamp ()
toString (line 315)
void toString ()

Documentation generated on Wed, 27 Aug 2003 18:11:43 +0200 by phpDocumentor 1.2.2