Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/presumo/util/log/Logger.java


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 EXCEPTION_MSG_KEY = "EXCEPTION";
33    public void exception(Throwable t);
34    
35    public void error(String key);
36    public void error(String key, Object param);
37    public void error(String key, Object param1, Object param2);
38    public void error(String key, Object [] params);
39  
40    public void warn(String key);
41    public void warn(String key, Object param);
42    public void warn(String key, Object param1, Object param2);
43    public void warn(String key, Object [] params);
44    
45    public void info(String key);
46    public void info(String key, Object param);
47    public void info(String key, Object param1, Object param2);
48    public void info(String key, Object [] params);
49  
50    public boolean isDebugEnabled();
51    public void debug(Object msg);
52    public void entry(String method);
53    public void entry(String method, Object param);
54    public void entry(String method, Object param1, Object param2);
55    public void entry(String method, Object [] params);
56    public void exit(String method);
57    public void exit(String method, Object retval);
58  }