You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by gr...@apache.org on 2009/05/18 12:07:27 UTC
svn commit: r775882 -
/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php
Author: grobmeier
Date: Mon May 18 10:07:27 2009
New Revision: 775882
URL: http://svn.apache.org/viewvc?rev=775882&view=rev
Log:
fixed bracket flow
Modified:
incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php
Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php?rev=775882&r1=775881&r2=775882&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutHtml.php Mon May 18 10:07:27 2009
@@ -56,8 +56,7 @@
/**
* Constructor
*/
- function LoggerLayoutHtml()
- {
+ function LoggerLayoutHtml() {
return;
}
@@ -72,8 +71,7 @@
* or a {@link LoggerAppenderMailEvent} then make sure to set the
* <b>LocationInfo</b> option of that appender as well.
*/
- function setLocationInfo($flag)
- {
+ function setLocationInfo($flag) {
if (is_bool($flag)) {
$this->locationInfo = $flag;
} else {
@@ -84,8 +82,7 @@
/**
* Returns the current value of the <b>LocationInfo</b> option.
*/
- function getLocationInfo()
- {
+ function getLocationInfo() {
return $this->locationInfo;
}
@@ -94,24 +91,21 @@
* document title of the generated HTML document.
* Defaults to 'Log4php Log Messages'.
*/
- function setTitle($title)
- {
+ function setTitle($title) {
$this->title = $title;
}
/**
* @return string Returns the current value of the <b>Title</b> option.
*/
- function getTitle()
- {
+ function getTitle() {
return $this->title;
}
/**
* @return string Returns the content type output by this layout, i.e "text/html".
*/
- function getContentType()
- {
+ function getContentType() {
return "text/html";
}
@@ -119,8 +113,7 @@
* @param LoggerLoggingEvent $event
* @return string
*/
- function format($event)
- {
+ function format($event) {
$sbuf = PHP_EOL . "<tr>" . PHP_EOL;
$sbuf .= "<td>";
@@ -180,8 +173,7 @@
/**
* @return string Returns appropriate HTML headers.
*/
- function getHeader()
- {
+ function getHeader() {
$sbuf = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">" . PHP_EOL;
$sbuf .= "<html>" . PHP_EOL;
$sbuf .= "<head>" . PHP_EOL;
@@ -214,8 +206,7 @@
/**
* @return string Returns the appropriate HTML footers.
*/
- function getFooter()
- {
+ function getFooter() {
$sbuf = "</table>" . PHP_EOL;
$sbuf .= "<br>" . PHP_EOL;
$sbuf .= "</body></html>";