1 package eu.simuline.m2latex.mojo;
2
3 import eu.simuline.m2latex.core.LogWrapper;
4
5 import org.apache.maven.plugin.logging.Log;
6
7
8
9
10
11
12
13
14
15
16 public class MavenLogWrapper implements LogWrapper {
17
18 private final Log log;
19
20
21 public MavenLogWrapper(Log log) {
22 this.log = log;
23 }
24
25 public void error(String msg) {
26 this.log.error(msg);
27 }
28
29 public void warn(String msg) {
30 this.log.warn(msg);
31 }
32
33 public void warn(String msg, Throwable thrw) {
34 this.log.warn(msg, thrw);
35 }
36
37 public void info(String msg) {
38 this.log.info(msg);
39 }
40
41
42 public void debug(String msg) {
43 this.log.debug(msg);
44 }
45
46
47
48
49
50
51 }