01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.logging;
05:
06: /**
07: * Common TC logger interface (mostly a copy of the log4j logger interface)
08: *
09: * @author teck
10: */
11: public interface TCLogger {
12: void debug(Object message);
13:
14: void debug(Object message, Throwable t);
15:
16: void error(Object message);
17:
18: void error(Object message, Throwable t);
19:
20: void fatal(Object message);
21:
22: void fatal(Object message, Throwable t);
23:
24: void info(Object message);
25:
26: void info(Object message, Throwable t);
27:
28: void warn(Object message);
29:
30: void warn(Object message, Throwable t);
31:
32: void log(LogLevel level, Object message);
33:
34: void log(LogLevel level, Object message, Throwable t);
35:
36: boolean isDebugEnabled();
37:
38: boolean isInfoEnabled();
39:
40: void setLevel(LogLevel level);
41:
42: LogLevel getLevel();
43:
44: String getName();
45: }
|