1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 package io.github.prolobjectlink.prolog;
27
28 import java.util.logging.Level;
29
30
31
32
33
34
35
36 public abstract class AbstractLogger implements PrologLogger {
37
38 public final void log(Object sender, Level level, Object message) {
39 log(sender, level, message, null);
40 }
41
42 public final void trace(Object sender, Object message) {
43 log(sender, Level.FINEST, message);
44 }
45
46 public final void trace(Object sender, Object message, Throwable t) {
47 log(sender, Level.FINEST, message, t);
48 }
49
50 public final void debug(Object sender, Object message) {
51 log(sender, Level.FINE, message);
52 }
53
54 public final void debug(Object sender, Object message, Throwable t) {
55 log(sender, Level.FINE, message, t);
56 }
57
58 public final void info(Object sender, Object message) {
59 log(sender, Level.INFO, message);
60 }
61
62 public final void info(Object sender, Object message, Throwable t) {
63 log(sender, Level.INFO, message, t);
64 }
65
66 public final void warn(Object sender, Object message) {
67 log(sender, Level.WARNING, message);
68 }
69
70 public final void warn(Object sender, Object message, Throwable t) {
71 log(sender, Level.WARNING, message, t);
72 }
73
74 public final void error(Object sender, Object message) {
75 log(sender, Level.SEVERE, message);
76 }
77
78 public final void error(Object sender, Object message, Throwable t) {
79 log(sender, Level.SEVERE, message, t);
80 }
81
82 }