org.jboss.maven.util.logging
Class PlexusToMavenPluginLoggingBridge

java.lang.Object
  extended by org.jboss.maven.util.logging.PlexusToMavenPluginLoggingBridge
All Implemented Interfaces:
org.codehaus.plexus.logging.Logger

public class PlexusToMavenPluginLoggingBridge
extends Object
implements org.codehaus.plexus.logging.Logger

Acts as a bridge between a Plexus Logger and Maven plugin Log for the cases where we utilize Plexus components which expect a Logger and we want to tie that logging back into the logging for our plugin.

Author:
Steve Ebersole

Field Summary
 
Fields inherited from interface org.codehaus.plexus.logging.Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
PlexusToMavenPluginLoggingBridge(org.apache.maven.plugin.logging.Log pluginLog)
           
 
Method Summary
 void debug(String message)
           
 void debug(String message, Throwable throwable)
           
 void error(String message)
           
 void error(String message, Throwable throwable)
           
 void fatalError(String message)
           
 void fatalError(String message, Throwable throwable)
           
 org.codehaus.plexus.logging.Logger getChildLogger(String name)
           
 String getName()
           
 int getThreshold()
           
 void info(String message)
           
 void info(String message, Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isWarnEnabled()
           
 void warn(String message)
           
 void warn(String message, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlexusToMavenPluginLoggingBridge

public PlexusToMavenPluginLoggingBridge(org.apache.maven.plugin.logging.Log pluginLog)
Method Detail

debug

public void debug(String message)
Specified by:
debug in interface org.codehaus.plexus.logging.Logger

debug

public void debug(String message,
                  Throwable throwable)
Specified by:
debug in interface org.codehaus.plexus.logging.Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.codehaus.plexus.logging.Logger

info

public void info(String message)
Specified by:
info in interface org.codehaus.plexus.logging.Logger

info

public void info(String message,
                 Throwable throwable)
Specified by:
info in interface org.codehaus.plexus.logging.Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.codehaus.plexus.logging.Logger

warn

public void warn(String message)
Specified by:
warn in interface org.codehaus.plexus.logging.Logger

warn

public void warn(String message,
                 Throwable throwable)
Specified by:
warn in interface org.codehaus.plexus.logging.Logger

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.codehaus.plexus.logging.Logger

error

public void error(String message)
Specified by:
error in interface org.codehaus.plexus.logging.Logger

error

public void error(String message,
                  Throwable throwable)
Specified by:
error in interface org.codehaus.plexus.logging.Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.codehaus.plexus.logging.Logger

fatalError

public void fatalError(String message)
Specified by:
fatalError in interface org.codehaus.plexus.logging.Logger

fatalError

public void fatalError(String message,
                       Throwable throwable)
Specified by:
fatalError in interface org.codehaus.plexus.logging.Logger

isFatalErrorEnabled

public boolean isFatalErrorEnabled()
Specified by:
isFatalErrorEnabled in interface org.codehaus.plexus.logging.Logger

getChildLogger

public org.codehaus.plexus.logging.Logger getChildLogger(String name)
Specified by:
getChildLogger in interface org.codehaus.plexus.logging.Logger

getThreshold

public int getThreshold()
Specified by:
getThreshold in interface org.codehaus.plexus.logging.Logger

getName

public String getName()
Specified by:
getName in interface org.codehaus.plexus.logging.Logger


Copyright © 2009-2011 JBoss, a division of Red Hat, Inc. All Rights Reserved.