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

Variable Index

 o ALL
Indica tutte le classi in output
 o CLASS
classes of log.
 o NONE
Indica nessuna classe in output

Method Index

 o addLog(int, String)
Add the msg to the log output.
 o isSelective()
Say if the class support selective log.
 o setClassLog(int, boolean)
Select the output that must displayed for log.

Variables

 o CLASS
 public static final int CLASS[]
classes of log.

 o NONE
 public static final int NONE
Indica nessuna classe in output

 o ALL
 public static final int ALL
Indica tutte le classi in output

Methods

 o 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.
 o 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.
 o 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