KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > PermamentLogging


1 /*
2  * PermamentLogging.java
3  *
4  * Created on 3. Juli 2004, 15:17
5  */

6
7 package org.jzonic.jlo;
8
9 /**
10  *
11  * @author Administrator
12  */

13 public class PermamentLogging {
14     
15     /** Creates a new instance of PermamentLogging */
16     public PermamentLogging() {
17     }
18     
19     /**
20      * @param args the command line arguments
21      */

22     public static void main(String JavaDoc[] args) {
23         Logger logger = LogManager.getLogger("org.jzonic","demo");
24         Logger logger2 = LogManager.getLogger("org.jzonic.jlo","demo");
25         Channel channel = LogManager.getChannel("special","demo");
26         logger.fatal("fatal output");
27         logger2.fatal("fatal output");
28         channel.log("channel output");
29                  
30     }
31     
32 }
33
Popular Tags