info.aduna.app.logging.log4j
Class Log4jConfiguration

java.lang.Object
  extended by info.aduna.app.logging.base.LogConfigurationBase
      extended by info.aduna.app.logging.log4j.Log4jConfiguration
All Implemented Interfaces:
Configuration, LogConfiguration

public class Log4jConfiguration
extends LogConfigurationBase


Field Summary
 
Fields inherited from interface info.aduna.app.logging.LogConfiguration
LOGGING_DIR, LOGGING_FILE
 
Fields inherited from interface info.aduna.app.config.Configuration
CONFIG_DIR
 
Constructor Summary
Log4jConfiguration(File applicationDataDir)
           
 
Method Summary
 void destroy()
          Clean up configuration resources.
 LogReader getLogReader()
          A reader that can read logging information as stored by the logger configured through this LogConfiguration.
 void init()
          Initialize the configuration settings.
 void load()
          Load the configuration settings.
 void save()
          Store configuration settings.
 
Methods inherited from class info.aduna.app.logging.base.LogConfigurationBase
getConfDir, getLoggingDir, getPackages, isDebugLoggingEnabled, setDebugLoggingEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jConfiguration

public Log4jConfiguration(File applicationDataDir)
                   throws IOException
Throws:
IOException
Method Detail

init

public void init()
          throws IOException
Description copied from interface: Configuration
Initialize the configuration settings.

Throws:
IOException - if the configuration settings could not be initialized because of an I/O problem.

load

public void load()
          throws IOException
Description copied from interface: Configuration
Load the configuration settings. Settings will be loaded from a user and application specific location first. If no such settings exists, an attempt will be made to retrieve settings from a resource on the classpath. If no such settings exist either, settings will be loaded from a default resource on the classpath.

Throws:
IOException - if the configuration settings could not be loaded due to an I/O problem.

save

public void save()
          throws IOException
Description copied from interface: Configuration
Store configuration settings. Settings will be stored in a user and application specific location.

Throws:
IOException - if the configuration settings could not be saved due to an I/O problem.

destroy

public void destroy()
Description copied from interface: Configuration
Clean up configuration resources.


getLogReader

public LogReader getLogReader()
Description copied from interface: LogConfiguration
A reader that can read logging information as stored by the logger configured through this LogConfiguration.

Returns:
a reader that can read logging information as stored by the logger configured through this LogConfiguration


Copyright © 1997-2008 Aduna. All Rights Reserved.