KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > logging > TCLogger


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.logging;
5
6 /**
7  * Common TC logger interface (mostly a copy of the log4j logger interface)
8  *
9  * @author teck
10  */

11 public interface TCLogger {
12   void debug(Object JavaDoc message);
13
14   void debug(Object JavaDoc message, Throwable JavaDoc t);
15
16   void error(Object JavaDoc message);
17
18   void error(Object JavaDoc message, Throwable JavaDoc t);
19
20   void fatal(Object JavaDoc message);
21
22   void fatal(Object JavaDoc message, Throwable JavaDoc t);
23
24   void info(Object JavaDoc message);
25
26   void info(Object JavaDoc message, Throwable JavaDoc t);
27
28   void warn(Object JavaDoc message);
29
30   void warn(Object JavaDoc message, Throwable JavaDoc t);
31
32   void log(LogLevel level, Object JavaDoc message);
33
34   void log(LogLevel level, Object JavaDoc message, Throwable JavaDoc t);
35
36   boolean isDebugEnabled();
37
38   boolean isInfoEnabled();
39
40   void setLevel(LogLevel level);
41
42   LogLevel getLevel();
43
44   String JavaDoc getName();
45 }
46
Popular Tags