|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.logging.LoggingConfiguration
public class LoggingConfiguration
Facility for configuration of logging.
| Field Summary | |
|---|---|
static int |
CLI
Configuration code for command line interface. |
private static boolean |
configurationChangeable
Whether the LoggingConfiguration is still changeable. |
static boolean |
DEBUG
General debug flag. |
private DebugFilter |
debugFilter
The debug filter (can be maintained). |
private Level |
loggerLevel
General logger level. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
LoggingConfiguration()
Provides a logging configuration with debugFilter
set to loggerLevel. |
|
| Method Summary | |
|---|---|
void |
configure(Logger logger,
Handler[] handler)
Configures the given logger. |
void |
configure(Logger logger,
int configuration)
Configures the specified logger according to the specified configuration code. |
static void |
configureRoot(int configuration)
Configures the root logger according to the specified configuration code. |
static void |
configureRootFinally(int configuration)
Configures the root logger according to the specified configuration code. |
protected Handler[] |
consoleHandlers()
Provides the standard handlers for command line interface configuration. |
static boolean |
isChangeable()
Returns whether the LoggingConfiguration is still changeable. |
void |
setDebugLevel(Level level)
Sets the level of debugFilter. |
void |
setLoggerLevel(Level level)
Sets the loggerLevel to the specified level. |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static boolean configurationChangeable
public static final boolean DEBUG
public static final int CLI
private Level loggerLevel
private DebugFilter debugFilter
| Constructor Detail |
|---|
public LoggingConfiguration()
debugFilter
set to loggerLevel. The logger level is specified
via the property file. Per default, the general
loggerLevel is set to ALL.
| Method Detail |
|---|
public void configure(Logger logger,
int configuration)
logger - the logger to configureconfiguration - the configuration code
public void configure(Logger logger,
Handler[] handler)
loggerLevel.
logger - the logger to configurehandler - the handlers to associate with the loggerpublic void setLoggerLevel(Level level)
loggerLevel to the specified level.
level - the new loggerLevelpublic void setDebugLevel(Level level)
debugFilter.
level - the new level of debugFilterprotected Handler[] consoleHandlers()
System.err. System.out. System.err. System.err.
public static void configureRootFinally(int configuration)
configurationChangeable is true. After
this method has been called, the logging configuration cannot be changed
again by a method of this class.
configuration - the configuration codepublic static void configureRoot(int configuration)
configurationChangeable is true.
configuration - the configuration codepublic static boolean isChangeable()
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||