See: Description
Class | Description |
---|---|
CLISmartHandler |
Handler that handles output to the console with clever formatting.
|
ELKILogRecord |
Base
LogRecord class used in ELKI. |
ErrorFormatter |
Format a log record for error output, including a stack trace if available.
|
Logging |
This class is a wrapper around
Logger and
LogManager offering additional convenience
functions. |
Logging.Level |
Logging Level class.
|
LoggingConfiguration |
Facility for configuration of logging.
|
LoggingUtil |
This final class contains some static convenience methods for logging.
|
MessageFormatter |
A formatter to simply retrieve the message of an LogRecord without printing
origin information.
|
OutputStreamLogger |
Class to write to Output Streams, IGNORING
OutputStreamLogger.close() , with a special
newline handling and always flushing. |
Logger
approach.
However, system-wide configuration of logging does not seem appropriate, therefore ELKI uses a configuration file named
logging - cli.propertiesliving in the package
de.lmu.ifi.dbs.elki.logging
(or an
appropriately named directory) for command line interface based operation.
Logging levels can be configured on a per-class or per-package level using, e.g.:
de.lmu.ifi.dbs.elki.index.level = FINEto set the logging level for the index structure package to FINE.
protected static final boolean debug = true || LoggingConfiguration.DEBUG
;
false || LoggingConfiguration.DEBUG
.
protected static final Logging
logger = Logging.getLogger
(Example.class);
if (logger.isVerbose()
) {
// compute logging message
logger.verbose
(expensive + message + construction);
}
LoggingUtil.exception
("Out of memory in algorithm.", exception);
final boolean verbose =logger.isVerbose
(); // ... for, while, anything expensive if (verbose) {logger.verbose
(...); }
Copyright © 2019 ELKI Development Team. License information.