[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/log4php/ -> LoggerMDC.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: 129 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 log4php/LoggerLog.php

Définit 1 class

LoggerMDC:: (3 méthodes):
  put()
  get()
  remove()


Classe: LoggerMDC  - X-Ref

The LoggerMDC class is similar to the {@link LoggerNDC} class except that it is
based on a map instead of a stack. It provides <i>mapped diagnostic contexts</i>.

A <i>Mapped Diagnostic Context</i>, or
MDC in short, is an instrument for distinguishing interleaved log
output from different sources. Log output is typically interleaved
when a server handles multiple clients near-simultaneously.

<p><b><i>The MDC is managed on a per thread basis</i></b>.

put($key, $value)   X-Ref
Put a context value as identified with the key parameter into the current thread's
context map.

<p>If the current thread does not have a context map it is
created as a side effect.</p>

<p>Note that you cannot put more than {@link LOGGER_MDC_HT_SIZE} keys.</p>

param: string $key the key
param: string $value the value

get($key)   X-Ref
Get the context identified by the key parameter.

<p>You can use special key identifiers to map values in
PHP $_SERVER and $_ENV vars. Just put a 'server.' or 'env.'
followed by the var name you want to refer.</p>

<p>This method has no side effects.</p>

param: string $key
return: string

remove($key)   X-Ref
Remove the the context identified by the key parameter.

It only affects user mappings.

param: string $key
return: string



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