Class LoggerLayoutHtml
This layout outputs events in a HTML table.
Configurable parameters for this layout are:
- title
- locationInfo
An example for this layout:
{@example ../../examples/php/layout_html.php 19}
The corresponding XML file:
{@example ../../examples/resources/layout_html.properties 18}
The above will print a HTML table that looks, converted back to plain text,
like the following:
Log session start time Wed Sep 9 00:11:30 2009 Time Thread Level Category Message 0 8318 INFO root Hello World!
- LoggerConfigurable
- LoggerLayout
- LoggerLayoutHtml
public
|
#
setLocationInfo( mixed $flag )
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. |
public
|
|
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
activateOptions(),
warn()
|
setBoolean(),
setFileSize(),
setInteger(),
setLevel(),
setNumeric(),
setPositiveInteger(),
setString()
|
protected
boolean
|
$locationInfo | false |
#
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. |
protected
string
|
$title | "Log4php Log Messages" |
#
The Title option takes a String value. This option sets the document title of the generated HTML document. Defaults to 'Log4php Log Messages'. |