|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.io.logging.JbbLogHandler
public class JbbLogHandler
Sample usage:
| Constructor Summary | |
|---|---|
JbbLogHandler()
|
|
| Method Summary | |
|---|---|
static void |
destroy()
|
static Level |
getLevelFromString(String logLevel,
Level defaultValue)
To convert a string value into the corresponding log level. |
static void |
init(String zLogFilesName,
int zMaxSizeInBytes,
int zNbOfLogFiles,
Level zInitialLevel)
Sample use: JbbLogHandler.init("C:\\Data\\Societe\\Quadrique\\Products\\JBuildingBlocks\\TestData\\taskScheduler\\ts.htm",1000000,1,Level.ALL); |
static void |
init(String zLogFilesName,
int zMaxSizeInBytes,
int zNbOfLogFiles,
Level zInitialLevel,
String loggerName)
Sample use: JbbLogHandler.init("C:\\Temp\test.log",1000000,1,Level.ALL,"com.quadrique.jbuildingblocks.taskScheduler.controller"); ==> will only log for the corresponding subtree (i.e. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbbLogHandler()
| Method Detail |
|---|
public static void init(String zLogFilesName,
int zMaxSizeInBytes,
int zNbOfLogFiles,
Level zInitialLevel)
throws Exception
zLogFilesName - zMaxSizeInBytes - zNbOfLogFiles - zInitialLevel -
Exception
public static void init(String zLogFilesName,
int zMaxSizeInBytes,
int zNbOfLogFiles,
Level zInitialLevel,
String loggerName)
throws Exception
zLogFilesName - zMaxSizeInBytes - zNbOfLogFiles - zInitialLevel - loggerName - e.g. "com.quadrique.jbuildingblocks.taskScheduler.controller"
Exceptionpublic static void destroy()
public static Level getLevelFromString(String logLevel,
Level defaultValue)
logLevel - the given log level (the string is trimmed and the comparisons are made in lower case
with "warning", "severe", "finer", "fine" and "finest")defaultValue - if the value could not be converted, the given defaultValue is returned
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||