Class LoggerLayoutTTCC

Description

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:

  • author: Marco Vassura
  • version: $Revision: 556801 $

Located in /layouts/LoggerLayoutTTCC.php (line 70)

LoggerLayout
   |
   --LoggerLayoutTTCC
Variable Summary
Method Summary
LoggerLayoutTTCC __construct ([string $dateFormat = ''])
void activateOptions ()
string format (LoggerLoggingEvent $event)
boolean getContextPrinting ()
string getDateFormat ()
boolean getThreadPrinting ()
void setCategoryPrefixing ( $categoryPrefixing)
void setContextPrinting ( $contextPrinting)
void setDateFormat ( $dateFormat)
void setMicroSecondsPrinting ( $microSecondsPrinting)
void setThreadPrinting ( $threadPrinting)
Variables
mixed $categoryPrefixing = true (line 74)
  • access: protected
mixed $contextPrinting = true (line 75)
  • access: protected
string $dateFormat = '%c' (line 81)
mixed $microSecondsPrinting = true (line 76)
  • access: protected
mixed $threadPrinting = true (line 73)
  • access: protected
Methods
Constructor __construct (line 89)

Constructor

LoggerLayoutTTCC __construct ([string $dateFormat = ''])
  • string $dateFormat: date format
activateOptions (line 96)
  • access: public
void activateOptions ()

Redefinition of:
LoggerLayout::activateOptions()
Override this method
format (line 197)

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.

  • access: public
string format (LoggerLoggingEvent $event)

Redefinition of:
LoggerLayout::format()
Override this method to create your own layout format.
getCategoryPrefixing (line 133)
  • return: Returns value of the CategoryPrefixing option.
  • access: public
boolean getCategoryPrefixing ()
getContextPrinting (line 151)
  • return: Returns value of the ContextPrinting option.
  • access: public
boolean getContextPrinting ()
getDateFormat (line 184)
  • access: public
string getDateFormat ()
getMicroSecondsPrinting (line 170)
  • return: Returns value of the MicroSecondsPrinting option.
  • access: public
boolean getMicroSecondsPrinting ()
getThreadPrinting (line 115)
  • return: Returns value of the ThreadPrinting option.
  • access: public
boolean getThreadPrinting ()
ignoresThrowable (line 232)
  • access: public
void ignoresThrowable ()
setCategoryPrefixing (line 123)

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

  • access: public
void setCategoryPrefixing ( $categoryPrefixing)
  • $categoryPrefixing
setContextPrinting (line 142)

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

This is true by default.

  • access: public
void setContextPrinting ( $contextPrinting)
  • $contextPrinting
setDateFormat (line 176)
  • access: public
void setDateFormat ( $dateFormat)
  • $dateFormat
setMicroSecondsPrinting (line 161)

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

This is true by default.

  • access: public
void setMicroSecondsPrinting ( $microSecondsPrinting)
  • $microSecondsPrinting
setThreadPrinting (line 104)

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

  • access: public
void setThreadPrinting ( $threadPrinting)
  • $threadPrinting

Inherited Methods

Inherited From LoggerLayout

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

Documentation generated by phpDocumentor 1.3.2