org.objectweb.util.monolog.api

Interface Level

Known Implementing Classes:
LevelImpl, LevelImpl, LevelImpl, LevelImpl

public interface Level

This class represents a logging level. A logging level allows to classify events by their importance. This interface provides methods to compare Level instances. A level has a name.

Author:
S.Chassande-Barrioz

Method Summary

int
compareTo(Level o)
Compares this object with the specified object for order.
int
getIntValue()
Returns the integer value which represents the level.
String
getName()
It retrieves the name of the Level
boolean
isComparableWith(Level o)
This method returns true is the current level and the Level parameter are ordered.
void
setName(String n)
It assigns the name of the Level

Method Details

compareTo

public int compareTo(Level o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.


getIntValue

public int getIntValue()
Returns the integer value which represents the level.


getName

public String getName()
It retrieves the name of the Level


isComparableWith

public boolean isComparableWith(Level o)
This method returns true is the current level and the Level parameter are ordered.


setName

public void setName(String n)
It assigns the name of the Level