Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
IJThequeLogger |
|
| 1.0;1 |
1 | package org.jtheque.core.managers.log; | |
2 | ||
3 | /** | |
4 | * A JTheque Logger. The logger is based on SLF4J and the real implementation is the SLF4J Log4J bridge | |
5 | * functionality. | |
6 | * | |
7 | * @author Baptiste Wicht | |
8 | */ | |
9 | public interface IJThequeLogger { | |
10 | /** | |
11 | * Log a message. | |
12 | * | |
13 | * @param message The message to log. | |
14 | * @param replaces The objects to replace the {} occurrences. | |
15 | */ | |
16 | void message(String message, Object... replaces); | |
17 | ||
18 | /** | |
19 | * Log a message of level debug. | |
20 | * | |
21 | * @param message The message to log | |
22 | * @param replaces The objects to replace the {} occurrences. | |
23 | */ | |
24 | void debug(String message, Object... replaces); | |
25 | ||
26 | /** | |
27 | * Log a message of level trace. | |
28 | * | |
29 | * @param message The message to log | |
30 | * @param replaces The objects to replace the {} occurrences. | |
31 | */ | |
32 | void trace(String message, Object... replaces); | |
33 | ||
34 | /** | |
35 | * Log a message of level warning. | |
36 | * | |
37 | * @param message The message to log | |
38 | * @param replaces The objects to replace the {} occurrences. | |
39 | */ | |
40 | void warn(String message, Object... replaces); | |
41 | ||
42 | /** | |
43 | * Log an exception. | |
44 | * | |
45 | * @param e The exception to log | |
46 | */ | |
47 | void error(Throwable e); | |
48 | ||
49 | /** | |
50 | * Log a message of level error. | |
51 | * | |
52 | * @param message The message to log | |
53 | * @param replaces The objects to replace the {} occurrences. | |
54 | */ | |
55 | void error(String message, Object... replaces); | |
56 | ||
57 | /** | |
58 | * Log a message and an exception with error level. | |
59 | * | |
60 | * @param message The message to log. | |
61 | * @param e The exception to log. | |
62 | */ | |
63 | void error(Exception e, String message); | |
64 | } |