KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > backup > utils > LoggerHelper


1 /*
2  * LogHelper.java
3  *
4  * Created on December 13, 2000, 9:20 AM
5  */

6
7 package com.sun.enterprise.config.backup.utils;
8
9 /**
10  * LoggerHelper works as a normal Logger in ONLINE mode
11  * It needs to be turned on explicitly in OFFLINE mode
12  * so that output on the client is not cluttered
13  *
14  * @author sridatta
15  */

16 public class LoggerHelper {
17     
18     /** Creates a new instance of LogHelper */
19     public LoggerHelper() {
20     }
21     
22     public static void fine(String JavaDoc message) {
23         //tbd FIXME NYI
24
System.out.println(message);
25     }
26     
27     public static void info(String JavaDoc message) {
28         //tbd FIXME NYI
29
System.out.println(message);
30     }
31     
32     public static void info(String JavaDoc message, Throwable JavaDoc exception) {
33         System.out.println(message);
34         exception.printStackTrace();
35     }
36     
37     public static void fine(String JavaDoc message, Throwable JavaDoc exception) {
38         System.out.println(message);
39         exception.printStackTrace();
40     }
41     public static void error(String JavaDoc message, Throwable JavaDoc exception) {
42         System.out.println(message);
43         exception.printStackTrace();
44     }
45     
46      public static void warning(String JavaDoc message, Throwable JavaDoc exception) {
47         System.out.println(message);
48         exception.printStackTrace();
49     }
50      
51        public static void warning(String JavaDoc message) {
52         System.out.println(message);
53     }
54        
55     
56 }
57
Popular Tags