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:

  • threadPrinting (true|false) enable/disable pid reporting
  • categoryPrefixing (true|false) enable/disable logger category reporting
  • contextPrinting (true|false) enable/disable NDC reporting
  • microSecondsPrinting (true|false) enable/disable micro seconds reporting in timestamp
  • dateFormat (string) set date format. See php http://php.net/date function for details.

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

LoggerLayout
   |
   --LoggerLayoutTTCC
Variable Summary
Method Summary
LoggerLayoutTTCC LoggerLayoutTTCC ([string $dateFormat = ''])
void format (mixed $event)
void getDateFormat ()
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 61)
mixed $contextPrinting = true (line 62)
string $dateFormat = '%c' (line 69)
mixed $microSecondsPrinting = true (line 63)
mixed $threadPrinting = true (line 60)
Methods
Constructor LoggerLayoutTTCC (line 77)

Constructor

Constructor

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

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.

void format (mixed $event)

Redefinition of:
LoggerLayout::format()
getCategoryPrefixing (line 117)

Returns value of the CategoryPrefixing option.

Returns value of the CategoryPrefixing option.

void getCategoryPrefixing ()
getContextPrinting (line 135)

Returns value of the ContextPrinting option.

Returns value of the ContextPrinting option.

void getContextPrinting ()
getDateFormat (line 165)
void getDateFormat ()
getMicroSecondsPrinting (line 154)

Returns value of the MicroSecondsPrinting option.

Returns value of the MicroSecondsPrinting option.

void getMicroSecondsPrinting ()
getThreadPrinting (line 99)

Returns value of the ThreadPrinting option.

Returns value of the ThreadPrinting option.

void getThreadPrinting ()
ignoresThrowable (line 209)
void ignoresThrowable ()
setCategoryPrefixing (line 107)

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 126)

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 160)
void setDateFormat (mixed $dateFormat)
setMicroSecondsPrinting (line 145)

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 88)

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, 27 Aug 2003 18:11:41 +0200 by phpDocumentor 1.2.2