LayoutHtml
- LoggerLayout
LayoutHtml extends LoggerLayout
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Property summary
Modifier and Type | Property |
---|---|
protected boolean | locationInfo |
protected string | title |
Methods summary
Modifier and Type | Method |
---|---|
public | setLocationInfo ( unknown flag ) |
public | getLocationInfo ( ) |
public | setTitle ( unknown title ) |
public string | getTitle ( ) |
public string | getContentType ( ) |
public string | format ( LoggingEvent event ) |
public string | getHeader ( ) |
public string | getFooter ( ) |
Properties in detail
-
locationInfo
protected boolean locationInfo
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.If you are embedding this layout within a LoggerAppenderMail or a LoggerAppenderMailEvent then make sure to set the LocationInfo option of that appender as well.
var
boolean -
title
protected string title
The Title option takes a String value. This option sets the document title of the generated HTML document. Defaults to 'Log4php Log Messages'.var
string
Methods in detail
-
setLocationInfo
public setLocationInfo ( unknown 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.If you are embedding this layout within a LoggerAppenderMail or a LoggerAppenderMailEvent then make sure to set the LocationInfo option of that appender as well.
-
getLocationInfo
public getLocationInfo ( )Returns the current value of the LocationInfo option. -
setTitle
public setTitle ( unknown title )The Title option takes a String value. This option sets the document title of the generated HTML document. Defaults to 'Log4php Log Messages'. -
getTitle
string public getTitle ( )return
string -
getContentType
string public getContentType ( )return
string -
format
-
getHeader
string public getHeader ( )return
string