|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ami.AMILog
Manages message logging with Log4J
Singleton
Field Summary | |
private static AMILog |
al
Self instance used for signleton pattern |
static int |
DEBUG
|
static int |
ERROR
|
static int |
FATAL
|
static int |
INFO
|
static String |
LOG_PATTERN
Logging pattern |
private static Logger |
loggerPersistent
logger for persistent events ( output in a file ) |
private static Logger |
loggerTemp
logger for non-persistant events ( output on console) |
private static String |
sLogFile
|
private static int |
verbosity
Verbosity level of the logger( between 1 and 5 ) Default used at statup is INFO |
static int |
WARNING
|
Constructor Summary | |
(package private) |
AMILog(String sAmiPath)
Constructor for the AMILog object |
Method Summary | |
static void |
debug(String s)
Log a debug-level message |
static void |
error(String s)
Log an error-level message |
static void |
fatal(String s)
Log a fatal error message |
static AMILog |
getInstance(String sAmiPath)
Return a self instance |
int |
getVerbosity()
Returns the verbosity. |
static void |
info(String s)
Log a info-level message |
static void |
setVerbosity(int newVerbosity)
Sets the verbosity. |
static void |
stack(Exception e)
Convenient method to display stacks properly |
static void |
warn(String s)
Log a warning-level message |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static String sLogFile
public static final String LOG_PATTERN
private static Logger loggerTemp
private static Logger loggerPersistent
public static final int FATAL
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG
private static int verbosity
Default used at statup is INFO
private static AMILog al
Constructor Detail |
AMILog(String sAmiPath)
sAmiPath
- Description of ParameterMethod Detail |
public static AMILog getInstance(String sAmiPath)
sAmiPath
- Path to AMI logger file
Implementation of the singleton pattern
public static void debug(String s)
public static void info(String s)
public static void warn(String s)
public static void error(String s)
public static void fatal(String s)
public int getVerbosity()
public static void setVerbosity(int newVerbosity)
verbosity
- The verbosity to setpublic static void stack(Exception e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |