Author: grobmeier
Date: Mon May 4 15:24:48 2009
New Revision: 771332
URL: http://svn.apache.org/viewvc?rev=771332&view=rev
Log:
fixed bracket style
Modified:
incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php
Modified: incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php?rev=771332&r1=771331&r2=771332&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php (original)
+++ incubator/log4php/trunk/src/main/php/layouts/LoggerLayoutTTCC.php Mon May
4 15:24:48 2009
@@ -72,10 +72,10 @@
* @param string date format
* @see dateFormat
*/
- public function __construct($dateFormat = '')
- {
- if (!empty($dateFormat))
+ public function __construct($dateFormat = '') {
+ if (!empty($dateFormat)) {
$this->dateFormat = $dateFormat;
+ }
return;
}
@@ -87,9 +87,7 @@
* The <b>ThreadPrinting</b> option specifies whether the name of the
* current thread is part of log output or not. This is true by default.
*/
- public function setThreadPrinting($threadPrinting)
- {
-
+ public function setThreadPrinting($threadPrinting) {
$this->threadPrinting = is_bool($threadPrinting) ?
$threadPrinting :
(bool)(strtolower($threadPrinting) == 'true');
@@ -106,8 +104,7 @@
* The <b>CategoryPrefixing</b> option specifies whether {...@link
Category}
* name is part of log output or not. This is true by default.
*/
- public function setCategoryPrefixing($categoryPrefixing)
- {
+ public function setCategoryPrefixing($categoryPrefixing) {
$this->categoryPrefixing = is_bool($categoryPrefixing) ?
$categoryPrefixing :
(bool)(strtolower($categoryPrefixing) == 'true');
@@ -134,8 +131,7 @@
/**
* @return boolean Returns value of the <b>ContextPrinting</b> option.
*/
- public function getContextPrinting()
- {
+ public function getContextPrinting() {
return $this->contextPrinting;
}
@@ -153,22 +149,19 @@
/**
* @return boolean Returns value of the <b>MicroSecondsPrinting</b> option.
*/
- public function getMicroSecondsPrinting()
- {
+ public function getMicroSecondsPrinting() {
return $this->microSecondsPrinting;
}
- public function setDateFormat($dateFormat)
- {
+ public function setDateFormat($dateFormat) {
$this->dateFormat = $dateFormat;
}
/**
* @return string
*/
- public function getDateFormat()
- {
+ public function getDateFormat() {
return $this->dateFormat;
}
@@ -180,8 +173,7 @@
* @param LoggerLoggingEvent $event
* @return string
*/
- public function format($event)
- {
+ public function format($event) {
$timeStamp = (float)$event->getTimeStamp();
$format = strftime($this->dateFormat, (int)$timeStamp);
@@ -192,9 +184,10 @@
$format .= ' ';
- if ($this->threadPrinting)
+ if ($this->threadPrinting) {
$format .= '['.getmypid().'] ';
-
+ }
+
$level = $event->getLevel();
$format .= $level->toString().' ';
@@ -215,8 +208,7 @@
return $format;
}
- public function ignoresThrowable()
- {
+ public function ignoresThrowable() {
return true;
}
}