| java.lang.Object org.jfree.base.log.LogConfiguration
LogConfiguration | public class LogConfiguration (Code) | | A log configuration class. This implementation is a simple frontend
to the global configuration.
author: Thomas Morgner |
DISABLE_LOGGING | final public static String DISABLE_LOGGING(Code) | | The 'disable logging' property key.
|
DISABLE_LOGGING_DEFAULT | final public static String DISABLE_LOGGING_DEFAULT(Code) | | The default 'disable logging' property value.
|
LOGLEVEL | final public static String LOGLEVEL(Code) | | The 'log level' property key.
|
LOGLEVEL_DEFAULT | final public static String LOGLEVEL_DEFAULT(Code) | | The default 'log level' property value.
|
LOGTARGET | final public static String LOGTARGET(Code) | | The 'log target' property key.
|
LOGTARGET_DEFAULT | final public static String LOGTARGET_DEFAULT(Code) | | The default 'log target' property value.
|
getLogLevel | public static String getLogLevel()(Code) | | Returns the log level.
the log level. |
getLogTarget | public static String getLogTarget()(Code) | | Returns the current log target.
the log target. |
isDisableLogging | public static boolean isDisableLogging()(Code) | | Returns true if logging is disabled, and false otherwise.
true, if logging is completly disabled, false otherwise. |
setDisableLogging | public static void setDisableLogging(boolean disableLogging)(Code) | | Sets the flag that disables logging.
To switch off logging globally, you can use the following code:
ReportConfiguration.getGlobalConfig().setDisableLogging(true);
Parameters: disableLogging - the flag. |
setLogLevel | public static void setLogLevel(String level)(Code) | | Sets the log level, which is read from the global report configuration at
the point that the classloader loads the
org.jfree.util.Log class.
Valid log levels are:
"Error" - error messages;
"Warn" - warning messages;
"Info" - information messages;
"Debug" - debug messages;
Notes:
Parameters: level - the new log level. |
setLogTarget | public static void setLogTarget(String logTarget)(Code) | | Sets the log target.
Parameters: logTarget - the new log target. |
|
|