001: /* Copyright (C) 2003 Finalist IT Group
002: *
003: * This file is part of JAG - the Java J2EE Application Generator
004: *
005: * JAG is free software; you can redistribute it and/or modify
006: * it under the terms of the GNU General Public License as published by
007: * the Free Software Foundation; either version 2 of the License, or
008: * (at your option) any later version.
009: * JAG is distributed in the hope that it will be useful,
010: * but WITHOUT ANY WARRANTY; without even the implied warranty of
011: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
012: * GNU General Public License for more details.
013: * You should have received a copy of the GNU General Public License
014: * along with JAG; if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
016: */
017:
018: package com.finalist.util.log;
019:
020: /**
021: * Interface for the logger object, for logging messages to a logfile
022: * @author Ronald Kramp - Finalist IT Group
023: * @version $Revision: 1.1 $, $Date: 2004/11/12 14:06:44 $
024: */
025: public interface Logger {
026:
027: /**
028: * Logging a finest message
029: * @param message the message to log
030: */
031: void finest(String message);
032:
033: /**
034: * Logging a finer message
035: * @param message the message to log
036: */
037: void finer(String message);
038:
039: /**
040: * Logging a fine message
041: * @param message the message to log
042: */
043: void fine(String message);
044:
045: /**
046: * Logging a config message
047: * @param message the message to log
048: */
049: void config(String message);
050:
051: /**
052: * Logging an info message
053: * @param message the message to log
054: */
055: void info(String message);
056:
057: /**
058: * Logging a warning message
059: * @param message the message to log
060: */
061: void warning(String message);
062:
063: /**
064: * Logging a severe message
065: * @param message the message to log
066: */
067: void severe(String message);
068:
069: //****************************************************
070: //* The methods from log4j also implemented below *
071: //****************************************************
072:
073: /**
074: * Logging a debug message
075: * @param message the message to log
076: */
077: void debug(String message);
078:
079: /**
080: * Logging a debug message with the throwable message
081: * @param message the message to log
082: * @param t the exception
083: */
084: void debug(String message, Throwable t);
085:
086: /**
087: * Logging an info message with the throwable message
088: * @param message the message to log
089: * @param t the exception
090: */
091: void info(String message, Throwable t);
092:
093: /**
094: * Logging a warning message
095: * @param message the message to log
096: */
097: void warn(String message);
098:
099: /**
100: * Logging a warning message with the throwable message
101: * @param message the message to log
102: * @param t the exception
103: */
104: void warn(String message, Throwable t);
105:
106: /**
107: * Logging an error message
108: * @param message the message to log
109: */
110: void error(String message);
111:
112: /**
113: * Logging an error message with the throwable message
114: * @param message the message to log
115: * @param t the exception
116: */
117: void error(String message, Throwable t);
118:
119: /**
120: * Logging a fatal message
121: * @param message the message to log
122: */
123: void fatal(String message);
124:
125: /**
126: * Logging a fatal message with the throwable message
127: * @param message the message to log
128: * @param t the exception
129: */
130: void fatal(String message, Throwable t);
131: }
|