hudson.plugins.checkstyle.util
Class PluginLogger

java.lang.Object
  extended by hudson.plugins.checkstyle.util.PluginLogger

public class PluginLogger
extends java.lang.Object

A simple logger that prefixes each message with the plug-in name.

Author:
Ulli Hafner

Constructor Summary
PluginLogger(java.io.PrintStream logger, java.lang.String pluginName)
          Creates a new instance of PluginLogger.
 
Method Summary
 void log(java.lang.String message)
          Logs the specified message.
 void log(java.lang.Throwable throwable)
          Logs the specified throwable.
 void printStackTrace(java.lang.Throwable throwable)
          Logs the stack trace of the throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLogger

public PluginLogger(java.io.PrintStream logger,
                    java.lang.String pluginName)
Creates a new instance of PluginLogger.

Parameters:
logger - the actual print stream to log to
pluginName - the plug-in name
Method Detail

log

public void log(java.lang.String message)
Logs the specified message.

Parameters:
message - the message

log

public void log(java.lang.Throwable throwable)
Logs the specified throwable.

Parameters:
throwable - the throwable

printStackTrace

public void printStackTrace(java.lang.Throwable throwable)
Logs the stack trace of the throwable.

Parameters:
throwable - the throwable


Copyright © 2009. All Rights Reserved.