KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > gjt > jclasslib > io > Log


1 /*
2     This library is free software; you can redistribute it and/or
3     modify it under the terms of the GNU General Public
4     License as published by the Free Software Foundation; either
5     version 2 of the license, or (at your option) any later version.
6 */

7
8 package org.gjt.jclasslib.io;
9
10 /**
11     Utility class to log errors, warnings and debug messages.
12  
13     @author <a HREF="mailto:jclasslib@ej-technologies.com">Ingo Kegel</a>
14     @version $Revision: 1.2 $ $Date: 2002/02/27 16:47:43 $
15 */

16 public class Log {
17
18     private Log() {
19     }
20
21     /**
22         Log an error message.
23         @param message the message
24      */

25     public static void error(String JavaDoc message) {
26         System.out.print("[error] ");
27         System.out.println(message);
28     }
29
30     /**
31         Log a warning message.
32         @param message the message
33      */

34     public static void warning(String JavaDoc message) {
35         System.out.print("[warning] ");
36         System.out.println(message);
37     }
38     
39     /**
40         Log a debug message.
41         @param message the message
42      */

43     public static void debug(String JavaDoc message) {
44         System.out.print("[debug] ");
45         System.out.println(message);
46     }
47     
48 }
49
Popular Tags