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/log4php/layouts/LoggerXmlLayout.php (line 44)

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

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 59)

No options to activate.

No options to activate.

void activateOptions ()

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

Formats a LoggerLoggingEvent in conformance with the log4php.

Formats a LoggerLoggingEvent in conformance with the log4php.dtd.

string format (LoggerLoggingEvent $event)

Redefinition of:
LoggerLayout::format()
Override this method to create your own layout format.
getFooter (line 120)
string getFooter ()

Redefinition of:
LoggerLayout::getFooter()
Returns the footer for the layout format.
getHeader (line 67)
string getHeader ()

Redefinition of:
LoggerLayout::getHeader()
Returns the header for the layout format.
getLocationInfo (line 128)
boolean getLocationInfo ()
ignoresThrowable (line 138)

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

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

boolean ignoresThrowable ()
setLocationInfo (line 150)

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, 10 Sep 2003 22:44:59 +0200 by phpDocumentor 1.2.2