Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/App.java @ 87:0f48188a6e02
Added some javadoc to the artifactdatabase module. Not done yet.
artifacts/trunk@839 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 26 Mar 2010 11:40:28 +0000 |
parents | 8c4638abd518 |
children | e27cf9c84eb8 |
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/App.java Fri Mar 26 10:04:34 2010 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/App.java Fri Mar 26 11:40:28 2010 +0000 @@ -18,9 +18,16 @@ */ public class App { + /** + * The logging is done via Log4j. To configure the logging + * a file 'log4j.properties' is search in the configuration directory. + */ public static final String LOG4J_PROPERTIES = "log4j.properties"; + /** + * Trys to load the Log4j configuration from ${config.dir}/log4j.properties. + */ public static final void configureLogging() { File configDir = Config.getConfigDirectory(); File propFile = new File(configDir, LOG4J_PROPERTIES); @@ -36,6 +43,10 @@ } } + /** + * Starts the artifact database. + * @param args The commandline arguments. Unused. + */ public static void main(String[] args) { configureLogging();