1 /* This file is part of the project "Hilbert II" - http://www.qedeq.org" target="alexandria_uri">http://www.qedeq.org 2 * 3 * Copyright 2000-2014, Michael Meyling <mime@qedeq.org>. 4 * 5 * "Hilbert II" is free software; you can redistribute 6 * it and/or modify it under the terms of the GNU General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 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 * @param url URL. 38 */ 39 public void logRequest(String text, String url); 40 41 /** 42 * Log successful reply for an request. 43 * 44 * @param text Reply. 45 * @param url URL. 46 */ 47 public void logSuccessfulReply(String text, String url); 48 49 /** 50 * Log failure reply for an request. 51 * 52 * @param text Reply. 53 * @param url URL. 54 * @param description Reason for reply. 55 */ 56 public void logFailureReply(String text, String url, String description); 57 58 /** 59 * Log message state for URL. 60 * 61 * @param text Message state. 62 * @param url URL. 63 */ 64 public void logMessageState(String text, String url); 65 66 /** 67 * Log failure state for URL. 68 * 69 * @param text Failure state. 70 * @param url URL. 71 * @param description Reason. 72 */ 73 public void logFailureState(String text, String url, String description); 74 75 /** 76 * Log successful state for URL. 77 * 78 * @param text State. 79 * @param url URL. 80 */ 81 public void logSuccessfulState(String text, String url); 82 83 }