1 package org.codehaus.plexus.logging;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public interface Logger {
24
25 int LEVEL_DEBUG = 0;
26
27
28 int LEVEL_INFO = 1;
29
30
31 int LEVEL_WARN = 2;
32
33
34 int LEVEL_ERROR = 3;
35
36
37 int LEVEL_FATAL = 4;
38
39
40 int LEVEL_DISABLED = 5;
41
42 void debug(String message);
43
44 void debug(String message, Throwable throwable);
45
46 boolean isDebugEnabled();
47
48 void info(String message);
49
50 void info(String message, Throwable throwable);
51
52 boolean isInfoEnabled();
53
54 void warn(String message);
55
56 void warn(String message, Throwable throwable);
57
58 boolean isWarnEnabled();
59
60 void error(String message);
61
62 void error(String message, Throwable throwable);
63
64 boolean isErrorEnabled();
65
66 void fatalError(String message);
67
68 void fatalError(String message, Throwable throwable);
69
70 boolean isFatalErrorEnabled();
71
72 Logger getChildLogger(String name);
73
74 int getThreshold();
75
76 void setThreshold(int threshold);
77
78 String getName();
79 }