Class LoggerLevel

Description

Defines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFODEBUG and ALL.

Defines the minimum set of levels recognized by the system, that is OFF, FATAL, ERROR, WARN, INFODEBUG and ALL. The LoggerLevel class may be subclassed to define a larger level set.

Located in Program_Root/log4php/LoggerLevel.php (line 50)


	
			
Direct descendents
Class Description
MyLoggerLevel This class introduces a new level level called TRACE. lower level than DEBUG.
Variable Summary
integer $level
string $levelStr
Method Summary
LoggerLevel LoggerLevel (integer $level, string $levelStr, integer $syslogEquivalent)
boolean equals (object $o)
integer getSyslogEquivalent ()
integer toInt ()
void &toLevel (mixed $arg, [mixed $defaultLevel = null], LoggerLevel $default)
string toString ()
Variables
integer $level (line 55)
string $levelStr (line 60)
integer $syslogEquivalent (line 65)
Methods
Constructor LoggerLevel (line 74)

Constructor

Constructor

LoggerLevel LoggerLevel (integer $level, string $levelStr, integer $syslogEquivalent)
  • integer $level
  • string $levelStr
  • integer $syslogEquivalent
equals (line 87)

Two priorities are equal if their level fields are equal.

Two priorities are equal if their level fields are equal.

boolean equals (object $o)
  • object $o
getLevelAll (line 173)

Returns an All Level

Returns an All Level

  • static:
LoggerLevel getLevelAll ()
getLevelDebug (line 161)

Returns a Debug Level

Returns a Debug Level

  • static:
LoggerLevel getLevelDebug ()
getLevelError (line 125)

Returns an Error Level

Returns an Error Level

  • static:
LoggerLevel getLevelError ()
getLevelFatal (line 113)

Returns a Fatal Level

Returns a Fatal Level

  • static:
LoggerLevel &getLevelFatal ()
getLevelInfo (line 149)

Returns an Info Level

Returns an Info Level

  • static:
LoggerLevel getLevelInfo ()
getLevelOff (line 101)

Returns an Off Level

Returns an Off Level

  • static:
LoggerLevel &getLevelOff ()
getLevelWarn (line 137)

Returns a Warn Level

Returns a Warn Level

  • static:
LoggerLevel getLevelWarn ()
getSyslogEquivalent (line 185)

Return the syslog equivalent of this priority as an integer.

Return the syslog equivalent of this priority as an integer.

  • final:
integer getSyslogEquivalent ()
isGreaterOrEqual (line 201)

Returns true if this level has a higher or equal level than the level passed as argument, false otherwise.

Returns true if this level has a higher or equal level than the level passed as argument, false otherwise. You should think twice before overriding the default implementation of isGreaterOrEqual method.

boolean isGreaterOrEqual (LoggerLevel $r)
toInt (line 220)

Returns the integer representation of this level.

Returns the integer representation of this level.

integer toInt ()
toLevel (line 233)

Convert the string passed as argument to a level. conversion fails, then this method returns a DEBUG Level.

Convert the string passed as argument to a level. If the conversion fails, then this method returns a DEBUG Level.

  • static:
void &toLevel (mixed $arg, [mixed $defaultLevel = null], LoggerLevel $default)

Redefined in descendants as:
  • MyLoggerLevel::toLevel() : Convert the string passed as argument to a level. conversion fails, then this method returns a TRACE Level.
toString (line 211)

Returns the string representation of this priority.

Returns the string representation of this priority.

  • final:
string toString ()

Documentation generated on Mon, 15 Sep 2003 21:12:57 +0200 by phpDocumentor 1.2.2