|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggerManager
General interface for defining, setting and handling the log mechanism.
Method Summary | |
---|---|
boolean |
close()
Close the logger by closing all related handlers. |
void |
createLogger(java.lang.String path,
java.util.logging.Level level,
boolean mode)
This method is a placeholder for subclasses relying on a stand alone logging mechanism, like the SystemLogger class. |
java.lang.String |
getParentDir(java.lang.Object logger)
Return the parentDir path used as base directory to locate the log file. |
RotateThread |
getRotateThread()
Return the RotateThread object (if any) used to rotate the log file. |
java.lang.String |
getRotationTime(java.lang.Object logger)
Return the rotation time set for this logger, already formatted and ready to print. |
void |
init(java.lang.String path,
java.lang.String logLevel,
int rotate,
boolean mode)
The main method to be called to initialize the log mechanism. |
void |
rotate()
This method is a placeholder for subclasses relying on a stand alone logging mechanism, like the SystemLogger class. |
Method Detail |
---|
void init(java.lang.String path, java.lang.String logLevel, int rotate, boolean mode)
null
, since the log4j mechanism
relies on an external configuration file.
path
- an ALREADY existing path from which logging folders must be createdlogLevel
- the logging minimal level as a String (INFO, WARNING or SEVERE)rotate
- the timeout (in minutes) for rotation of the log filemode
- if true
initializes the standard log file, if false
initializes the
benchmark analysis filevoid createLogger(java.lang.String path, java.util.logging.Level level, boolean mode)
SystemLogger
class. If the logging feature is performed by an external module, for
example the apache.log4j package, implementation of this method is not required.
path
- the path reference for the log filelevel
- the logging minimal level as a Logger.Level value (INFO, WARNING or SEVERE)mode
- if true
creates the standard log file, if false
creates the
benchmark analysis fileSystemLogger.getLogFile(String optionalPath, boolean mode)
void rotate()
SystemLogger
class. If the logging feature is performed by an external module, for
example the apache.log4j package, implementation of this method is not required.
RotateThread
boolean close()
SystemLogger
class.
java.lang.String getParentDir(java.lang.Object logger)
parentDir
path used as base directory to locate the log file.
logger
- a valid general Logger instance
RotateThread getRotateThread()
RotateThread
object (if any) used to rotate the log file.
RotateThread
object (if used)java.lang.String getRotationTime(java.lang.Object logger)
logger
- a valid general Logger instance
|
Build 18/09/2012 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |