KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > presumo > util > log > Logger


1 /**
2  * This file is part of Presumo.
3  *
4  * Presumo is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * Presumo is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Presumo; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  *
19  * Copyright 2001 Dan Greff
20  */

21 package com.presumo.util.log;
22
23 /**
24  * Interface used by all code within this project to log any type of messages.
25  * If you wish to modify Presumo to use your project's logging mechanism
26  * simply implement this interface and modify LoggerFactory.
27  *
28  * @author Dan Greff
29  */

30 public interface Logger
31 {
32   public static final String JavaDoc EXCEPTION_MSG_KEY = "EXCEPTION";
33   public void exception(Throwable JavaDoc t);
34   
35   public void error(String JavaDoc key);
36   public void error(String JavaDoc key, Object JavaDoc param);
37   public void error(String JavaDoc key, Object JavaDoc param1, Object JavaDoc param2);
38   public void error(String JavaDoc key, Object JavaDoc [] params);
39
40   public void warn(String JavaDoc key);
41   public void warn(String JavaDoc key, Object JavaDoc param);
42   public void warn(String JavaDoc key, Object JavaDoc param1, Object JavaDoc param2);
43   public void warn(String JavaDoc key, Object JavaDoc [] params);
44   
45   public void info(String JavaDoc key);
46   public void info(String JavaDoc key, Object JavaDoc param);
47   public void info(String JavaDoc key, Object JavaDoc param1, Object JavaDoc param2);
48   public void info(String JavaDoc key, Object JavaDoc [] params);
49
50   public boolean isDebugEnabled();
51   public void debug(Object JavaDoc msg);
52   public void entry(String JavaDoc method);
53   public void entry(String JavaDoc method, Object JavaDoc param);
54   public void entry(String JavaDoc method, Object JavaDoc param1, Object JavaDoc param2);
55   public void entry(String JavaDoc method, Object JavaDoc [] params);
56   public void exit(String JavaDoc method);
57   public void exit(String JavaDoc method, Object JavaDoc retval);
58 }
59
Popular Tags