[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/log4php/varia/ -> LoggerLevelRangeFilter.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: 168 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

LoggerLevelRangeFilter:: (7 méthodes):
  getAcceptOnMatch()
  setAcceptOnMatch()
  getLevelMin()
  setLevelMin()
  getLevelMax()
  setLevelMax()
  decide()


Classe: LoggerLevelRangeFilter  - X-Ref

This is a very simple filter based on level matching, which can be
used to reject messages with priorities outside a certain range.

<p>The filter admits three options <b><var>LevelMin</var></b>, <b><var>LevelMax</var></b>
and <b><var>AcceptOnMatch</var></b>.</p>

<p>If the level of the {@link LoggerLoggingEvent} is not between Min and Max
(inclusive), then {@link LOG4PHP_LOGGER_FILTER_DENY} is returned.</p>

<p>If the Logging event level is within the specified range, then if
<b><var>AcceptOnMatch</var></b> is <i>true</i>,
{@link LOG4PHP_LOGGER_FILTER_ACCEPT} is returned, and if
<b><var>AcceptOnMatch</var></b> is <i>false</i>,
{@link LOG4PHP_LOGGER_FILTER_NEUTRAL} is returned.</p>

<p>If <b><var>LevelMin</var></b> is not defined, then there is no
minimum acceptable level (ie a level is never rejected for
being too "low"/unimportant).  If <b><var>LevelMax</var></b> is not
defined, then there is no maximum acceptable level (ie a
level is never rejected for beeing too "high"/important).</p>

<p>Refer to the {@link LoggerAppenderSkeleton::setThreshold()} method
available to <b>all</b> appenders extending {@link LoggerAppenderSkeleton}
for a more convenient way to filter out events by level.</p>

getAcceptOnMatch()   X-Ref

return: boolean

setAcceptOnMatch($acceptOnMatch)   X-Ref

param: boolean $acceptOnMatch

getLevelMin()   X-Ref

return: LoggerLevel

setLevelMin($l)   X-Ref

param: string $l the level min to match

getLevelMax()   X-Ref

return: LoggerLevel

setLevelMax($l)   X-Ref

param: string $l the level max to match

decide($event)   X-Ref
Return the decision of this filter.

param: LoggerLoggingEvent $event
return: integer



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