1 package com.google.code.sbt;
2
3 import org.apache.maven.plugin.logging.Log;
4 import xsbti.F0;
5 import xsbti.Logger;
6
7
8
9
10 public class SBTLogger
11 implements Logger
12 {
13
14 Log log;
15
16 public SBTLogger( Log l )
17 {
18 this.log = l;
19 }
20
21 public void error( F0<String> msg )
22 {
23 if ( log.isErrorEnabled() )
24 {
25 log.error( msg.apply() );
26 }
27 }
28
29 public void warn( F0<String> msg )
30 {
31 if ( log.isWarnEnabled() )
32 {
33 log.warn( msg.apply() );
34 }
35 }
36
37 public void info( F0<String> msg )
38 {
39 if ( log.isInfoEnabled() )
40 {
41 log.info( msg.apply() );
42 }
43 }
44
45 public void debug( F0<String> msg )
46 {
47 if ( log.isDebugEnabled() )
48 {
49 log.debug( msg.apply() );
50 }
51 }
52
53 public void trace( F0<Throwable> exception )
54 {
55 if ( log.isDebugEnabled() )
56 {
57 log.debug( exception.apply() );
58 }
59 }
60 }