|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.util.CLogMgt
public class CLogMgt
Compiere Log Management.
| Field Summary | |
|---|---|
static Level[] |
LEVELS
LOG Levels |
| Constructor Summary | |
|---|---|
CLogMgt()
CLogMgt |
|
| Method Summary | |
|---|---|
static void |
addHandler(Handler handler)
Add Handler (to root logger) |
static void |
enable(boolean enableLogging)
Enable/Disable logging (of handlers) |
protected static Handler[] |
getHandlers()
Get Handlers |
static StringBuffer |
getInfo(Ctx ctx,
StringBuffer sb)
Get Compiere System Info |
static StringBuffer |
getInfoBasic(Ctx ctx,
StringBuffer sb)
Get Basic Compiere System Info. |
static StringBuffer |
getInfoDetail(StringBuffer sb,
Ctx ctx)
Create System Info |
static Level |
getLevel()
Get logging Level of handlers |
static int |
getLevelAsInt()
Get logging Level of handlers |
static void |
initialize(boolean isClient)
Initialize Logging |
static boolean |
isLevel(Level level)
Is Logging Level logged |
static boolean |
isLevelAll()
Is Logging Level FINEST logged |
static boolean |
isLevelFine()
Is Logging Level FINE logged |
static boolean |
isLevelFiner()
Is Logging Level FINER logged |
static boolean |
isLevelFinest()
Is Logging Level FINEST logged |
static boolean |
isLevelInfo()
Is Logging Level INFO logged |
static void |
main(String[] args)
Test |
static void |
printProperties(Properties p,
String description,
boolean logIt)
Print Properties |
protected static void |
setFilter(Filter filter)
Set Filter for all handlers |
protected static void |
setFormatter(Formatter formatter)
Set Formatter for all handlers |
static void |
setJDBCDebug(boolean enable)
Set JDBC Debug |
static void |
setLevel(int intLevel)
Set Level |
static void |
setLevel(Level level)
Set Level for all handlers |
static void |
setLevel(String levelString)
Set Level |
static void |
setLoggerLevel(Level level,
String loggerNamePart)
Set Level for all Loggers |
static void |
shutdown()
Shutdown Logging system |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Level[] LEVELS
| Constructor Detail |
|---|
public CLogMgt()
| Method Detail |
|---|
public static void initialize(boolean isClient)
isClient - clientprotected static Handler[] getHandlers()
public static void addHandler(Handler handler)
handler - new Handlerprotected static void setFormatter(Formatter formatter)
formatter - formatterprotected static void setFilter(Filter filter)
filter - filter
public static void setLoggerLevel(Level level,
String loggerNamePart)
level - log levelloggerNamePart - optional partial class/logger namepublic static void setLevel(Level level)
level - log levelpublic static void setLevel(int intLevel)
intLevel - integer value of levelpublic static void setLevel(String levelString)
levelString - string representation of levelpublic static void setJDBCDebug(boolean enable)
enable - public static Level getLevel()
public static int getLevelAsInt()
public static boolean isLevel(Level level)
level - level
public static boolean isLevelAll()
public static boolean isLevelFinest()
public static boolean isLevelFiner()
public static boolean isLevelFine()
public static boolean isLevelInfo()
public static void enable(boolean enableLogging)
enableLogging - true if logging enabledpublic static void shutdown()
public static void printProperties(Properties p,
String description,
boolean logIt)
p - Properties to printdescription - Description of propertieslogIt - if true write to Log (Level.Config), else to System.out
public static StringBuffer getInfo(Ctx ctx,
StringBuffer sb)
sb - buffer to append or null
public static StringBuffer getInfoDetail(StringBuffer sb,
Ctx ctx)
sb - Optional string bufferctx - Environment
public static StringBuffer getInfoBasic(Ctx ctx,
StringBuffer sb)
sb - buffer to append or null
public static void main(String[] args)
args - ignored
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||