# Class LoggerLevel

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

The LoggerLevel class may be subclassed to define a larger level set.

Package: log4php
Version: $Revision: 1379729 $
Since: 0.5
Located at LoggerLevel.php

Methods summary
`public boolean` | # `equals( LoggerLevels $other )` Compares two logger levels. Compares two logger levels. #### Parameters $other `LoggerLevels` $other #### Returns `boolean`
`public static `LoggerLevel`` | # `getLevelOff( )` Returns an Off Level Returns an Off Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelFatal( )` Returns a Fatal Level Returns a Fatal Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelError( )` Returns an Error Level Returns an Error Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelWarn( )` Returns a Warn Level Returns a Warn Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelInfo( )` Returns an Info Level Returns an Info Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelDebug( )` Returns a Debug Level Returns a Debug Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelTrace( )` Returns a Trace Level Returns a Trace Level #### Returns ``LoggerLevel``
`public static `LoggerLevel`` | # `getLevelAll( )` Returns an All Level Returns an All Level #### Returns ``LoggerLevel``
`public integer` | # `getSyslogEquivalent( )` Return the syslog equivalent of this level as an integer. Return the syslog equivalent of this level as an integer. #### Returns `integer`
`public boolean` | # `isGreaterOrEqual( `LoggerLevel` $other )` 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. #### Parameters $other ``LoggerLevel`` $other #### Returns `boolean`
`public string` | # `toString( )` Returns the string representation of this level. Returns the string representation of this level. #### Returns `string`
`public string` | # `__toString( )` Returns the string representation of this level. Returns the string representation of this level. #### Returns `string`
`public integer` | # `toInt( )` Returns the integer representation of this level. Returns the integer representation of this level. #### Returns `integer`
`public static `LoggerLevel`` | # `toLevel( mixed $arg, `LoggerLevel` $defaultLevel = null )` Convert the input argument to a level. If the conversion fails, then this method returns the provided default level. Convert the input argument to a level. If the conversion fails, then this method returns the provided default level. #### Parameters $arg `mixed` $arg The value to convert to level. $defaultLevel ``LoggerLevel`` $default Value to return if conversion is not possible. #### Returns ``LoggerLevel``

Constants summary
`integer` | `OFF` | `2147483647` | #
`integer` | `FATAL` | `50000` | #
`integer` | `ERROR` | `40000` | #
`integer` | `WARN` | `30000` | #
`integer` | `INFO` | `20000` | #
`integer` | `DEBUG` | `10000` | #
`integer` | `TRACE` | `5000` | #
`integer` | `ALL` | `-2147483647` | #