]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.maven/src/main/java/org/argeo/slc/maven/embedder/PlexusLoggerAdapter.java
Upgrade to Maven 2.0.9 (in order to support import id DependencyManagement)
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.maven / src / main / java / org / argeo / slc / maven / embedder / PlexusLoggerAdapter.java
1 package org.argeo.slc.maven.embedder;
2
3 import org.codehaus.plexus.logging.Logger;/*
4 * Copyright 2001-2005 The Apache Software Foundation.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 /**
20 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
21 * @version $Id: PlexusLoggerAdapter.java 293410 2005-10-03 18:06:00Z jdcasey $
22 */
23 public class PlexusLoggerAdapter
24 implements Logger
25 {
26 private MavenEmbedderLogger logger;
27
28 public PlexusLoggerAdapter( MavenEmbedderLogger logger )
29 {
30 this.logger = logger;
31 }
32
33 public void debug( String message )
34 {
35 logger.debug( message );
36 }
37
38 public void debug( String message, Throwable throwable )
39 {
40 logger.debug( message, throwable );
41 }
42
43 public boolean isDebugEnabled()
44 {
45 return logger.isDebugEnabled();
46 }
47
48 public void info( String message )
49 {
50 logger.info( message );
51 }
52
53 public void info( String message, Throwable throwable )
54 {
55 logger.info( message, throwable );
56 }
57
58 public boolean isInfoEnabled()
59 {
60 return logger.isInfoEnabled();
61 }
62
63 public void warn( String message )
64 {
65 logger.warn( message );
66 }
67
68 public void warn( String message, Throwable throwable )
69 {
70 logger.warn( message, throwable );
71 }
72
73 public boolean isWarnEnabled()
74 {
75 return logger.isWarnEnabled();
76 }
77
78 public void error( String message )
79 {
80 logger.error( message );
81 }
82
83 public void error( String message, Throwable throwable )
84 {
85 logger.error( message );
86 }
87
88 public boolean isErrorEnabled()
89 {
90 return logger.isErrorEnabled();
91 }
92
93 public void fatalError( String message )
94 {
95 logger.fatalError( message );
96 }
97
98 public void fatalError( String message, Throwable throwable )
99 {
100 logger.fatalError( message, throwable );
101 }
102
103 public boolean isFatalErrorEnabled()
104 {
105 return logger.isFatalErrorEnabled();
106 }
107
108 public void setThreshold( int i )
109 {
110 logger.setThreshold( i );
111 }
112
113 public int getThreshold()
114 {
115 return logger.getThreshold();
116 }
117
118 public String getName()
119 {
120 return toString();
121 }
122
123 public Logger getChildLogger( String name )
124 {
125 return this;
126 }
127 }