Class LoggerLayoutTTCC

Description

TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.

TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name. Each of the four fields can be individually enabled or disabled. The time format depends on the DateFormat used.

If no dateFormat is specified it defaults to '%c'. See php http://www.php.net/date function for details.

Params:

Located in Program_Root/log4php/layouts/LoggerLayoutTTCC.php (line 80)

LoggerLayout
   |
   --LoggerLayoutTTCC
Variable Summary
Method Summary
LoggerLayoutTTCC LoggerLayoutTTCC ([string $dateFormat = ''])
string format (LoggerLoggingEvent $event)
boolean getContextPrinting ()
string getDateFormat ()
boolean getThreadPrinting ()
void setCategoryPrefixing (mixed $categoryPrefixing)
void setContextPrinting (mixed $contextPrinting)
void setDateFormat (mixed $dateFormat)
void setMicroSecondsPrinting (mixed $microSecondsPrinting)
void setThreadPrinting (mixed $threadPrinting)
Variables
mixed $categoryPrefixing = true (line 84)
mixed $contextPrinting = true (line 85)
string $dateFormat = '%c' (line 91)
mixed $microSecondsPrinting = true (line 86)
mixed $threadPrinting = true (line 83)
Methods
Constructor LoggerLayoutTTCC (line 99)

Constructor

Constructor

LoggerLayoutTTCC LoggerLayoutTTCC ([string $dateFormat = ''])
  • string $dateFormat: date format
format (line 203)

In addition to the level of the statement and message, the returned string includes time, thread, category.

In addition to the level of the statement and message, the returned string includes time, thread, category. Time, thread, category are printed depending on options.

string format (LoggerLoggingEvent $event)

Redefinition of:
LoggerLayout::format()
Override this method to create your own layout format.
getCategoryPrefixing (line 139)
  • return: Returns value of the CategoryPrefixing option.
boolean getCategoryPrefixing ()
getContextPrinting (line 157)
  • return: Returns value of the ContextPrinting option.
boolean getContextPrinting ()
getDateFormat (line 190)
string getDateFormat ()
getMicroSecondsPrinting (line 176)
  • return: Returns value of the MicroSecondsPrinting option.
boolean getMicroSecondsPrinting ()
getThreadPrinting (line 121)
  • return: Returns value of the ThreadPrinting option.
boolean getThreadPrinting ()
ignoresThrowable (line 237)
void ignoresThrowable ()
setCategoryPrefixing (line 129)

The CategoryPrefixing option specifies whether Category name is part of log output or not.

The CategoryPrefixing option specifies whether Category name is part of log output or not. This is true by default.

void setCategoryPrefixing (mixed $categoryPrefixing)
setContextPrinting (line 148)

The ContextPrinting option specifies log output will include the nested context information belonging to the current thread.

The ContextPrinting option specifies log output will include the nested context information belonging to the current thread. This is true by default.

void setContextPrinting (mixed $contextPrinting)
setDateFormat (line 182)
void setDateFormat (mixed $dateFormat)
setMicroSecondsPrinting (line 167)

The MicroSecondsPrinting option specifies if microseconds infos should be printed at the end of timestamp.

The MicroSecondsPrinting option specifies if microseconds infos should be printed at the end of timestamp. This is true by default.

void setMicroSecondsPrinting (mixed $microSecondsPrinting)
setThreadPrinting (line 110)

The ThreadPrinting option specifies whether the name of the current thread is part of log output or not.

The ThreadPrinting option specifies whether the name of the current thread is part of log output or not. This is true by default.

void setThreadPrinting (mixed $threadPrinting)

Inherited Methods

Inherited From LoggerLayout

LoggerLayout::activateOptions()
LoggerLayout::factory()
LoggerLayout::format()
LoggerLayout::getContentType()
LoggerLayout::getFooter()
LoggerLayout::getHeader()

Documentation generated on Wed, 3 Sep 2003 01:02:34 +0200 by phpDocumentor 1.2.2