|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.shlublu.javax.log.ApplicationLog
Creation : 20 oct 2001
Convenience class : helps to manage logs using
org.apache.log4j
In case of logfile, this one is created using the ApplicationName (see below)
and a timestamp to define its name.
The logged events are horodated using the "%d{yy-MM-dd hh:mm:ss} [%-5p] (%t:%rms) %m%n"
layout.
Field Summary | |
static int |
LOG_CONSOLE
Log device : console |
static int |
LOG_FILE
Log device : file |
static int |
LOG_NONE
No device to log to |
Method Summary | |
org.apache.log4j.Category |
cat()
Return the Category corresponding to construction given class class name (see ctors for details) |
void |
disable(int iFlagsToRemove)
Log modification : disable some log devices |
static ApplicationLog |
getInstance(java.lang.String strClassName,
java.lang.String strAppName)
ApplicationLog factory. |
static ApplicationLog |
getInstance(java.lang.String strClassName,
java.lang.String strAppName,
int iFl)
ApplicationLog factory. |
static java.lang.String |
getTrace(java.lang.Throwable t)
Print the given Throwable's stack trace in the returned String. |
void |
restore(int iFlagsToRemove)
Log modification : restore some disabled log devices |
void |
start(Version version)
Initialize the log and writes the header. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int LOG_NONE
public static int LOG_FILE
public static int LOG_CONSOLE
Method Detail |
public static ApplicationLog getInstance(java.lang.String strClassName, java.lang.String strAppName)
public static ApplicationLog getInstance(java.lang.String strClassName, java.lang.String strAppName, int iFl)
public org.apache.log4j.Category cat()
public void disable(int iFlagsToRemove)
int
- iFlagsToRemove flag combinationrestore(int)
public void restore(int iFlagsToRemove)
int
- iFlagsToRemove flag combinationdisable(int)
public void start(Version version) throws java.io.IOException
org.apache.log4j.PatternLayout
,
Appender
,
SimpleDateFormat
public static java.lang.String getTrace(java.lang.Throwable t)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |