|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.base.log.LogConfiguration
public class LogConfiguration
A log configuration class. This implementation is a simple frontend to the global configuration.
Field Summary | |
---|---|
static String |
DISABLE_LOGGING
The 'disable logging' property key. |
static String |
DISABLE_LOGGING_DEFAULT
The default 'disable logging' property value. |
static String |
LOGLEVEL
The 'log level' property key. |
static String |
LOGLEVEL_DEFAULT
The default 'log level' property value. |
static String |
LOGTARGET
The 'log target' property key. |
static String |
LOGTARGET_DEFAULT
The default 'log target' property value. |
Method Summary | |
---|---|
static String |
getLogLevel()
Returns the log level. |
static String |
getLogTarget()
Returns the current log target. |
static boolean |
isDisableLogging()
Returns true if logging is disabled, and false otherwise. |
static void |
setDisableLogging(boolean disableLogging)
Sets the flag that disables logging. |
static void |
setLogLevel(String level)
Sets the log level, which is read from the global report configuration at the point that the classloader loads the Log class. |
static void |
setLogTarget(String logTarget)
Sets the log target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DISABLE_LOGGING_DEFAULT
public static final String LOGLEVEL
public static final String LOGLEVEL_DEFAULT
public static final String LOGTARGET
public static final String LOGTARGET_DEFAULT
public static final String DISABLE_LOGGING
Method Detail |
---|
public static String getLogTarget()
public static void setLogTarget(String logTarget)
logTarget
- the new log target.public static String getLogLevel()
public static void setLogLevel(String level)
Log
class.
Valid log levels are:
"Error"
- error messages;"Warn"
- warning messages;"Info"
- information messages;"Debug"
- debug messages;Log
class has been
loaded will have no effect.setDisableLogging(boolean)
method.
level
- the new log level.public static boolean isDisableLogging()
true
if logging is disabled, and false
otherwise.
public static void setDisableLogging(boolean disableLogging)
To switch off logging globally, you can use the following code:
ReportConfiguration.getGlobalConfig().setDisableLogging(true);
disableLogging
- the flag.
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |