org.objectweb.util.monolog.api
Interface LevelFactory
- Configurable, MonologFactory
- AbstractFactory, BasicFactory, LoggerFactory, LoggerImpl, MonologLoggerFactory, MonologLoggerFactory
public interface LevelFactory
It manages Level instances.
- Sebastien Chassande-Barrioz
Level | defineLevel(String name, String value) - It defines a new Level with a name and a string value.
|
Level | defineLevel(String name, int value) - It defines a new Level with a name and an integer value.
|
Level | getLevel(String name) - It retrieves a Level instance which the name is equals to the parameter.
|
Level | getLevel(int value) - It retrieves a Level instance which the integer value is equals to the
parameter.
|
Level[] | getLevels() - It retrieves all Level instances defined in this manager.
|
void | removeLevel(String name) - It removes a Level instance to this manager.
|
defineLevel
public Level defineLevel(String name,
String value)
It defines a new Level with a name and a string value. The string value
is analyzed to obtain the integer value.
name
- is the name of the new levelvalue
- is the string value of the new level
- a Level instance or a null value if It exists a Level with the
same name but with another integer value.
defineLevel
public Level defineLevel(String name,
int value)
It defines a new Level with a name and an integer value.
name
- is the name of the new levelvalue
- is the integer value of the new level
- a Level instance or a null value if It exists a Level with the
same name but with another integer value.
getLevel
public Level getLevel(String name)
It retrieves a Level instance which the name is equals to the parameter.
name
- is the name of request Level
- a Leve instance or a null value if the level does not exist.
getLevel
public Level getLevel(int value)
It retrieves a Level instance which the integer value is equals to the
parameter.
value
- is the integer value of request Level
- a Leve instance or a null value if the level does not exist. As
it is possible to define several Levels which have the same integer value
this methods returns the Level instance of first name found in the list.
getLevels
public Level[] getLevels()
It retrieves all Level instances defined in this manager.
removeLevel
public void removeLevel(String name)
It removes a Level instance to this manager.