KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > LoggingManagerIFace


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 /******************************** Package */
7 package com.raptus.owxv3;
8
9 /******************************** Imports */
10 import java.util.Hashtable JavaDoc;
11
12 /******************************** Raptus-Header */
13 /**
14  * This interface defines methods which each concrete LoggingManager must implement in
15  * order to be able to talk to the LoggingManager-singleton in the same uniform way.
16  *
17  *
18  * @see com.raptus.owxv3.LoggingManager LoggingManager
19  *
20  *
21  * <hr>
22  * <table width="100%" border="0">
23  * <tr>
24  * <td width="24%"><b>Filename</b></td><td width="76%">LoggingManagerIFace.java</td>
25  * </tr>
26  * <tr>
27  * <td width="24%"><b>Author</b></td><td width="76%">Pascal Mainini (pmainini@raptus.com)</td>
28  * </tr>
29  * <tr>
30  * <td width="24%"><b>Date</b></td><td width="76%">03rd of April 2001</td>
31  * </tr>
32  * </table>
33  * <hr>
34  * <table width="100%" border="0">
35  * <tr>
36  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
37  * </tr>
38  * <tr>
39  * <td width="24%">2001-04-03</td><td width="76%">created</td>
40  * </tr>
41  * </table>
42  * <hr>
43  */

44 public interface LoggingManagerIFace
45 {
46
47 /******************************** Methods */
48     /**
49      * This Method is used to initialize.
50      *
51      * @param hash a hashtable with additional configuration-info.
52      * @return true if initialising was successful, false if not.
53      */

54     public boolean initialize(Hashtable JavaDoc hash) ;
55
56     /**
57      * This method simply logs a message, using the normal verbosity-level.
58      *
59      * @param msg Message to log.
60      */

61     public void log(String JavaDoc msg);
62
63     /**
64      * This method logs a message with the specified verbosity-level.
65      *
66      * @param msg Message to log
67      * @param level Importance of this message.
68      */

69     public void log(String JavaDoc msg, int level);
70
71     /**
72      * This method logs a message and places a reference (usually the name)
73      * of the Object specified in the message. This is usefull and recommended
74      * for use instead of using a custom format specifying the caller.
75      *
76      * Normal verbosity-level is used.
77      *
78      * @param msg Message to log
79      * @param caller A reference to an object whoose name should appear in the message.
80      */

81     public void log(String JavaDoc msg, Object JavaDoc caller);
82
83     /**
84      * Does the same as log(String msg, Object caller) but you can specify the verbosity-
85      * level you wish.
86      *
87      * @param msg Message to log
88      * @param caller A reference to an object whoose name should appear in the message.
89      * @param level Importance of this message.
90      */

91     public void log(String JavaDoc msg, Object JavaDoc caller, int level);
92 }
93
Popular Tags