01 /* This file is part of the project "Hilbert II" - http://www.qedeq.org
02 *
03 * Copyright 2000-2011, Michael Meyling <mime@qedeq.org>.
04 *
05 * "Hilbert II" is free software; you can redistribute
06 * it and/or modify it under the terms of the GNU General Public
07 * License as published by the Free Software Foundation; either
08 * version 2 of the License, or (at your option) any later version.
09 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16 package org.qedeq.kernel.bo.log;
17
18
19 /**
20 * Log event listener. Here one can listen to high level application events.
21 *
22 * @author Michael Meyling
23 */
24 public interface LogListener {
25
26 /**
27 * Log message.
28 *
29 * @param text Message.
30 */
31 public void logMessage(String text);
32
33 /**
34 * Log request.
35 *
36 * @param text Request.
37 */
38 public void logRequest(String text);
39
40 /**
41 * Log successful reply for an request.
42 *
43 * @param text Reply.
44 */
45 public void logSuccessfulReply(String text);
46
47 /**
48 * Log failure reply for an request.
49 *
50 * @param text Reply.
51 * @param description Reason for reply.
52 */
53 public void logFailureReply(String text, String description);
54
55 /**
56 * Log message state for URL.
57 *
58 * @param text Message state.
59 * @param url URL.
60 */
61 public void logMessageState(String text, String url);
62
63 /**
64 * Log failure state for URL.
65 *
66 * @param text Failure state.
67 * @param url URL.
68 * @param description Reason.
69 */
70 public void logFailureState(String text, String url, String description);
71
72 /**
73 * Log successful state for URL.
74 *
75 * @param text State.
76 * @param url URL.
77 */
78 public void logSuccessfulState(String text, String url);
79
80 }
|