it.jnrpe.plugins
Class PluginBase.Logger

java.lang.Object
  extended by it.jnrpe.plugins.PluginBase.Logger
Enclosing class:
PluginBase

protected class PluginBase.Logger
extends Object

This class represent a generic logger that will be used by plugins extending the PluginBase to write logs.

Author:
Massimiliano Ziccardi

Constructor Summary
protected PluginBase.Logger()
           
 
Method Summary
 void debug(String message)
          Writes a debug message.
 void debug(String message, Throwable exc)
          Writes a debug message and logs the exception.
 void error(String message)
          Writes an error message.
 void error(String message, Throwable exc)
          Writes an error message and logs the exception.
 void fatal(String message)
          Writes a fatal message.
 void fatal(String message, Throwable exc)
          Writes a fatal message and logs the exception.
 void info(String message)
          Writes an info message.
 void info(String message, Throwable exc)
          Writes an info message and logs the exception.
 void trace(String message)
          Writes a trace message.
 void trace(String message, Throwable exc)
          Writes a trace message and logs the exception.
 void warn(String message)
          Writes a warning message.
 void warn(String message, Throwable exc)
          Writes a warning message and logs the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginBase.Logger

protected PluginBase.Logger()
Method Detail

trace

public final void trace(String message)
Writes a trace message.

Parameters:
message - the message

trace

public final void trace(String message,
                        Throwable exc)
Writes a trace message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged

debug

public final void debug(String message)
Writes a debug message.

Parameters:
message - the message

debug

public final void debug(String message,
                        Throwable exc)
Writes a debug message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged

info

public final void info(String message)
Writes an info message.

Parameters:
message - the message

info

public final void info(String message,
                       Throwable exc)
Writes an info message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged

warn

public final void warn(String message)
Writes a warning message.

Parameters:
message - the message

warn

public final void warn(String message,
                       Throwable exc)
Writes a warning message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged

error

public final void error(String message)
Writes an error message.

Parameters:
message - the message

error

public final void error(String message,
                        Throwable exc)
Writes an error message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged

fatal

public final void fatal(String message)
Writes a fatal message.

Parameters:
message - the message

fatal

public final void fatal(String message,
                        Throwable exc)
Writes a fatal message and logs the exception.

Parameters:
message - the message
exc - the exception to be logged


Copyright © 2014. All Rights Reserved.