[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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

Définit 1 class

LoggerStringMatchFilter:: (5 méthodes):
  getAcceptOnMatch()
  setAcceptOnMatch()
  getStringToMatch()
  setStringToMatch()
  decide()


Classe: LoggerStringMatchFilter  - X-Ref

This is a very simple filter based on string matching.

<p>The filter admits two options {@link $stringToMatch} and
{@link $acceptOnMatch}. If there is a match (using {@link PHP_MANUAL#strpos}
between the value of the {@link $stringToMatch} option and the message
of the {@link LoggerLoggingEvent},
then the {@link decide()} method returns {@link LOG4PHP_LOGGER_FILTER_ACCEPT} if
the <b>AcceptOnMatch</b> option value is true, if it is false then
{@link LOG4PHP_LOGGER_FILTER_DENY} is returned. If there is no match, {@link LOG4PHP_LOGGER_FILTER_NEUTRAL}
is returned.</p>

getAcceptOnMatch()   X-Ref

return: boolean

setAcceptOnMatch($acceptOnMatch)   X-Ref

param: mixed $acceptOnMatch a boolean or a string ('true' or 'false')

getStringToMatch()   X-Ref

return: string

setStringToMatch($s)   X-Ref

param: string $s the string to match

decide($event)   X-Ref

return: integer a {@link LOGGER_FILTER_NEUTRAL} is there is no string match.



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