com.bmc.mainview.nvbapi
Class LogWrapper.PrintLogger

java.lang.Object
  extended by com.bmc.mainview.nvbapi.LogWrapper
      extended by com.bmc.mainview.nvbapi.LogWrapper.PrintLogger
Enclosing class:
LogWrapper

public static class LogWrapper.PrintLogger
extends LogWrapper

A Simple logger to write to a PrintStream such as System.out

Author:
Fritz

Nested Class Summary
 
Nested classes/interfaces inherited from class com.bmc.mainview.nvbapi.LogWrapper
LogWrapper.PrintLogger
 
Constructor Summary
LogWrapper.PrintLogger(java.io.PrintStream printStream)
          Create a PrintStream logger
 
Method Summary
 void debug(java.lang.String message)
          Log a detailed message about what the package is doing
 void error(java.lang.String message)
          Log an error message.
 void error(java.lang.String message, java.lang.Exception e)
          Log an error message along with a traceback of how it was called.
 void info(java.lang.String message)
          Log an informational message.
 void setLevel(java.util.logging.Level l)
          Filter out uninteresting messages
 void warn(java.lang.String message)
          Log a warning message
 
Methods inherited from class com.bmc.mainview.nvbapi.LogWrapper
logWrapperFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogWrapper.PrintLogger

public LogWrapper.PrintLogger(java.io.PrintStream printStream)
Create a PrintStream logger

Parameters:
printStream -
Method Detail

setLevel

public void setLevel(java.util.logging.Level l)
Description copied from class: LogWrapper
Filter out uninteresting messages

Specified by:
setLevel in class LogWrapper

debug

public void debug(java.lang.String message)
Description copied from class: LogWrapper
Log a detailed message about what the package is doing

Specified by:
debug in class LogWrapper

error

public void error(java.lang.String message)
Description copied from class: LogWrapper
Log an error message.

Specified by:
error in class LogWrapper

error

public void error(java.lang.String message,
                  java.lang.Exception e)
Description copied from class: LogWrapper
Log an error message along with a traceback of how it was called.

Specified by:
error in class LogWrapper
e - The exception associated with the message

info

public void info(java.lang.String message)
Description copied from class: LogWrapper
Log an informational message.

Specified by:
info in class LogWrapper

warn

public void warn(java.lang.String message)
Description copied from class: LogWrapper
Log a warning message

Specified by:
warn in class LogWrapper