All Packages Class Hierarchy This Package Previous Next Index
Interface it.unipi.di.logmanager.LogManager
- public interface LogManager
Interface that abstract the output for log.
The interface define eight classes of masking for classify various types of
log messages. The classes are represented by a set of flags in a byte:
CLASS1 == 0x01, ..., CLASS8 == 0x80.
The addLog method can support the class management.
- Version:
- 1.0
- Author:
- Antonio Cisternino
-
ALL
- Indica tutte le classi in output
-
CLASS
- classes of log.
-
NONE
- Indica nessuna classe in output
-
addLog(int, String)
- Add the msg to the log output.
-
isSelective()
- Say if the class support selective log.
-
setClassLog(int, boolean)
- Select the output that must displayed for log.
CLASS
public static final int CLASS[]
- classes of log.
NONE
public static final int NONE
- Indica nessuna classe in output
ALL
public static final int ALL
- Indica tutte le classi in output
addLog
public abstract void addLog(int type,
String msg)
- Add the msg to the log output.
- Parameters:
- type - Class of log message, the filter of log is optional but is recommended.
- msg - Message to display.
setClassLog
public abstract void setClassLog(int type,
boolean set)
- Select the output that must displayed for log. This function may be a dummy if
the implementor don't support selective log.
- Parameters:
- type - Class of input, this int can be NONE, ALL or any int between 1 and 8.
- set - If true the output is activated otherwise is disactivated. This
parameter must be ignored if type is ALL or NONE.
isSelective
public abstract boolean isSelective()
- Say if the class support selective log.
- Returns:
- true if support for classes of log is active, false otherwise.
All Packages Class Hierarchy This Package Previous Next Index