[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/log4php/layouts/ -> LoggerLayoutTTCC.php (sommaire)

log4php is a PHP port of the log4j java logging package. <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p> <p>Design, strategies and part of the methods documentation are developed by log4j team (Ceki Gülcü as log4j project founder and {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>

Poids: 240 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

LoggerLayoutTTCC:: (13 méthodes):
  LoggerLayoutTTCC()
  setThreadPrinting()
  getThreadPrinting()
  setCategoryPrefixing()
  getCategoryPrefixing()
  setContextPrinting()
  getContextPrinting()
  setMicroSecondsPrinting()
  getMicroSecondsPrinting()
  setDateFormat()
  getDateFormat()
  format()
  ignoresThrowable()


Classe: LoggerLayoutTTCC  - X-Ref

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

<p>Each of the four fields can be individually enabled or
disabled. The time format depends on the <b>DateFormat</b> used.</p>

<p>If no dateFormat is specified it defaults to '%c'.
See php {@link PHP_MANUAL#date} function for details.</p>

Params:
- {@link $threadPrinting} (true|false) enable/disable pid reporting.
- {@link $categoryPrefixing} (true|false) enable/disable logger category reporting.
- {@link $contextPrinting} (true|false) enable/disable NDC reporting.
- {@link $microSecondsPrinting} (true|false) enable/disable micro seconds reporting in timestamp.
- {@link $dateFormat} (string) set date format. See php {@link PHP_MANUAL#date} function for details.

LoggerLayoutTTCC($dateFormat = '')   X-Ref
Constructor

param: string date format

setThreadPrinting($threadPrinting)   X-Ref
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.


getThreadPrinting()   X-Ref

return: boolean Returns value of the <b>ThreadPrinting</b> option.

setCategoryPrefixing($categoryPrefixing)   X-Ref
The <b>CategoryPrefixing</b> option specifies whether {@link Category}
name is part of log output or not. This is true by default.


getCategoryPrefixing()   X-Ref

return: boolean Returns value of the <b>CategoryPrefixing</b> option.

setContextPrinting($contextPrinting)   X-Ref
The <b>ContextPrinting</b> option specifies log output will include
the nested context information belonging to the current thread.
This is true by default.


getContextPrinting()   X-Ref

return: boolean Returns value of the <b>ContextPrinting</b> option.

setMicroSecondsPrinting($microSecondsPrinting)   X-Ref
The <b>MicroSecondsPrinting</b> option specifies if microseconds infos
should be printed at the end of timestamp.
This is true by default.


getMicroSecondsPrinting()   X-Ref

return: boolean Returns value of the <b>MicroSecondsPrinting</b> option.

setDateFormat($dateFormat)   X-Ref
Pas de description

getDateFormat()   X-Ref

return: string

format($event)   X-Ref
In addition to the level of the statement and message, the
returned string includes time, thread, category.
<p>Time, thread, category are printed depending on options.

param: LoggerLoggingEvent $event
return: string

ignoresThrowable()   X-Ref
Pas de description



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7