Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.logging
Class LoggingConfiguration

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.LoggingConfiguration

public final class LoggingConfiguration
extends Object

Facility for configuration of logging.

Author:
Erich Schubert

Field Summary
private static String CLIConffile
          Configuration file name
private static String confbase
          Configuration base
protected static LoggingConfiguration config
          Static instance of the configuration
static boolean DEBUG
          General debug flag.
private static String TOPLEVEL_PACKAGE
          Top level ELKI package (for setting 'verbose')
 
Constructor Summary
private LoggingConfiguration()
          Configure Java Logging API: java.util.logging
 
Method Summary
static void assertConfigured()
          Assert that logging was configured.
static void loadConfiguration(String pkg, String name)
          Reconfigure logging using a configuration file.
private  void loadConfigurationPrivate(String pkg, String name)
          Load a configuration file.
static void setVerbose(boolean verbose)
          Reconfigure logging to enable 'verbose' logging at the top level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static boolean DEBUG
General debug flag.


CLIConffile

private static final String CLIConffile
Configuration file name

See Also:
Constant Field Values

TOPLEVEL_PACKAGE

private static final String TOPLEVEL_PACKAGE
Top level ELKI package (for setting 'verbose')

See Also:
Constant Field Values

confbase

private static final String confbase
Configuration base


config

protected static LoggingConfiguration config
Static instance of the configuration

Constructor Detail

LoggingConfiguration

private LoggingConfiguration()
Configure Java Logging API: java.util.logging

Method Detail

loadConfigurationPrivate

private void loadConfigurationPrivate(String pkg,
                                      String name)
Load a configuration file.

Parameters:
pkg - Package name to look in
name - File name

loadConfiguration

public static void loadConfiguration(String pkg,
                                     String name)
Reconfigure logging using a configuration file.

Parameters:
pkg - Package name, may be null
name - File name, may not be null

assertConfigured

public static void assertConfigured()
Assert that logging was configured.


setVerbose

public static void setVerbose(boolean verbose)
Reconfigure logging to enable 'verbose' logging at the top level.

Parameters:
verbose - verbosity flag

Release 0.2.1 (2009-07-13_1605)