|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecterland.util.Log
public abstract class Log
Logging class which makes it possible to activate/deactivate logging
Field Summary | |
---|---|
static int |
DEBUG
Deprecated. Constant for DEBUG logging level |
static int |
ERROR
Deprecated. Constant for ERROR logging level |
static int |
INFORMATION
Deprecated. Constant for INFORMATION logging level |
static int |
WARNING
Deprecated. Constant for WARNING logging level |
Constructor Summary | |
---|---|
Log()
Deprecated. |
Method Summary | |
---|---|
static boolean |
isEnabled(Object obj)
Deprecated. Checks if logging is enabled on the specified object. |
static boolean |
isEnabled(Object obj,
int level)
Deprecated. Checks if logging is enabled on the specified object. |
static void |
println(Object obj,
Object logObject)
Deprecated. Log a object if logging is enabled or just return without doing anything if logging is disabled |
static void |
println(Object obj,
Object logObject,
int level)
Deprecated. Log a object if logging is enabled or just return without doing anything if logging is disabled |
static void |
println(Object obj,
String logString)
Deprecated. Log a text string if logging is enabled or just return without doing anything if logging is disabled |
static void |
println(Object obj,
String logString,
int level)
Deprecated. Log a text string if logging is enabled or just return without doing anything if logging is disabled |
static void |
setLog(boolean active)
Deprecated. Enabled or disable logging everywhere |
static void |
setLog(String logFile)
Deprecated. Enabled or disable logging by using a configuration string |
static void |
setLogConfig(ParameterValueStorageInterface config)
Deprecated. Enabled or disable logging by using a configuration string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEBUG
public static int INFORMATION
public static int WARNING
public static int ERROR
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void setLog(boolean active)
active
- Indicates if logging should be enablepublic static boolean isEnabled(Object obj)
obj
- Object to check if logging is enabled onpublic static boolean isEnabled(Object obj, int level)
obj
- Object to check if logging is enabled onlevel
- The logging level to checkpublic static void setLog(String logFile)
logFile
- Configuration file with instruction of
which parts that should be logged. A file like below would
enable logging in erland.util.XMLNode and erland.util.ParameterStorage
classes:
public static void setLogConfig(ParameterValueStorageInterface config)
config
- Configuration storage with instruction of
which parts that should be logged. A string like below would
enable logging in erland.util.XMLNode and erland.util.ParameterStorage
classes:
public static void println(Object obj, String logString)
obj
- The object in which the logging occurredlogString
- The string that should be loggedpublic static void println(Object obj, String logString, int level)
obj
- The object in which the logging occurredlogString
- The string that should be loggedlevel
- The log level of this log stringpublic static void println(Object obj, Object logObject)
obj
- The object in which the logging occurredlogObject
- The object that should be logged the toString() method will be calledpublic static void println(Object obj, Object logObject, int level)
obj
- The object in which the logging occurredlogObject
- The object that should be logged the toString() method will be calledlevel
- The log level of this log string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |