01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.util.logging;
11:
12: import org.mmbase.util.ResourceLoader;
13:
14: /**
15: * Class TestConfig
16: *
17: * @javadoc
18: */
19:
20: public class TestConfig {
21: public static void main(String[] args) {
22: String configuration = args[0];
23: String category = args[1];
24: Logging.configure(ResourceLoader.getConfigurationRoot(),
25: configuration);
26: Logger log = Logging.getLoggerInstance(category);
27:
28: log.trace("a trace message");
29: log.debug("a debug message");
30: log.info("an info message");
31: log.service("a service message");
32: log.warn("a warn message");
33: log.error("an error message");
34:
35: Logging.shutdown();
36:
37: }
38: }
|