2 * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org
.argeo
.slc
.maven
.embedder
;
19 import org
.codehaus
.plexus
.logging
.Logger
;/*
20 * Copyright 2001-2005 The Apache Software Foundation.
22 * Licensed under the Apache License, Version 2.0 (the "License");
23 * you may not use this file except in compliance with the License.
24 * You may obtain a copy of the License at
26 * http://www.apache.org/licenses/LICENSE-2.0
28 * Unless required by applicable law or agreed to in writing, software
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
36 * @author <a href="mailto:jason@maven.org">Jason van Zyl</a>
37 * @version $Id: PlexusLoggerAdapter.java 293410 2005-10-03 18:06:00Z jdcasey $
39 public class PlexusLoggerAdapter
42 private MavenEmbedderLogger logger
;
44 public PlexusLoggerAdapter( MavenEmbedderLogger logger
)
49 public void debug( String message
)
51 logger
.debug( message
);
54 public void debug( String message
, Throwable throwable
)
56 logger
.debug( message
, throwable
);
59 public boolean isDebugEnabled()
61 return logger
.isDebugEnabled();
64 public void info( String message
)
66 logger
.info( message
);
69 public void info( String message
, Throwable throwable
)
71 logger
.info( message
, throwable
);
74 public boolean isInfoEnabled()
76 return logger
.isInfoEnabled();
79 public void warn( String message
)
81 logger
.warn( message
);
84 public void warn( String message
, Throwable throwable
)
86 logger
.warn( message
, throwable
);
89 public boolean isWarnEnabled()
91 return logger
.isWarnEnabled();
94 public void error( String message
)
96 logger
.error( message
);
99 public void error( String message
, Throwable throwable
)
101 logger
.error( message
);
104 public boolean isErrorEnabled()
106 return logger
.isErrorEnabled();
109 public void fatalError( String message
)
111 logger
.fatalError( message
);
114 public void fatalError( String message
, Throwable throwable
)
116 logger
.fatalError( message
, throwable
);
119 public boolean isFatalErrorEnabled()
121 return logger
.isFatalErrorEnabled();
124 public void setThreshold( int i
)
126 logger
.setThreshold( i
);
129 public int getThreshold()
131 return logger
.getThreshold();
134 public String
getName()
139 public Logger
getChildLogger( String name
)