Class LoggerXmlLayout

Description

The output of the LoggerXmlLayout consists of a series of log4php:event elements.

The output of the LoggerXmlLayout consists of a series of log4php:event elements. Parameters: $locationInfo.

It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file.

Located in Program_Root/src/log4php/layouts/LoggerXmlLayout.php (line 38)

LoggerLayout
   |
   --LoggerXmlLayout
Variable Summary
boolean $locationInfo
Method Summary
void activateOptions ()
void format (object $event)
void getFooter ()
void getHeader ()
void getLocationInfo ()
void setLocationInfo (mixed $flag)
Variables
boolean $locationInfo = true (line 48)

The LocationInfo option takes a boolean value. it is set to false which means there will be no location information output by this layout. true, then the file name and line number of the statement at the origin of the log statement will be output.

The LocationInfo option takes a boolean value. By default, it is set to false which means there will be no location information output by this layout. If the the option is set to true, then the file name and line number of the statement at the origin of the log statement will be output.

Methods
activateOptions (line 53)

No options to activate.

No options to activate.

void activateOptions ()

Redefinition of:
LoggerLayout::activateOptions()
Override this method
format (line 72)

Formats a LoggerLoggingEvent in conformance with the log4php.

Formats a LoggerLoggingEvent in conformance with the log4php.dtd.

void format (object $event)

Redefinition of:
LoggerLayout::format()
getFooter (line 106)
void getFooter ()

Redefinition of:
LoggerLayout::getFooter()
getHeader (line 58)
void getHeader ()

Redefinition of:
LoggerLayout::getHeader()
getLocationInfo (line 111)
void getLocationInfo ()
ignoresThrowable (line 120)

The XMLLayout prints and does not ignore exceptions. return value false.

The XMLLayout prints and does not ignore exceptions. Hence the return value false.

void ignoresThrowable ()
setLocationInfo (line 132)

The $locationInfo option takes a boolean value. it is set to false which means there will be no location information output by this layout. true, then the file name and line number of the statement at the origin of the log statement will be output.

The $locationInfo option takes a boolean value. By default, it is set to false which means there will be no location information output by this layout. If the the option is set to true, then the file name and line number of the statement at the origin of the log statement will be output.

void setLocationInfo (mixed $flag)

Inherited Methods

Inherited From LoggerLayout

LoggerLayout::activateOptions()
LoggerLayout::factory()
LoggerLayout::format()
LoggerLayout::getContentType()
LoggerLayout::getFooter()
LoggerLayout::getHeader()

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