org.jclouds.logging
Class NullLogger

java.lang.Object
  extended by org.jclouds.logging.NullLogger
All Implemented Interfaces:
Logger

public class NullLogger
extends Object
implements Logger

Logger that doesn't do anything.

Useful to get baseline performance unaffected by logging.

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.logging.Logger
Logger.LoggerFactory
 
Field Summary
 
Fields inherited from interface org.jclouds.logging.Logger
CONSOLE, NULL
 
Constructor Summary
NullLogger()
           
 
Method Summary
 void debug(String message, Object... args)
           
 void error(String message, Object... args)
           
 void error(Throwable throwable, String message, Object... args)
           
 String getCategory()
           
 void info(String message, Object... args)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(String message, Object... args)
           
 void warn(String message, Object... args)
           
 void warn(Throwable throwable, String message, Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullLogger

public NullLogger()
Method Detail

debug

public void debug(String message,
                  Object... args)
Specified by:
debug in interface Logger

error

public void error(String message,
                  Object... args)
Specified by:
error in interface Logger

error

public void error(Throwable throwable,
                  String message,
                  Object... args)
Specified by:
error in interface Logger

getCategory

public String getCategory()
Specified by:
getCategory in interface Logger

info

public void info(String message,
                 Object... args)
Specified by:
info in interface Logger

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Logger

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Logger

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Logger

trace

public void trace(String message,
                  Object... args)
Specified by:
trace in interface Logger

warn

public void warn(String message,
                 Object... args)
Specified by:
warn in interface Logger

warn

public void warn(Throwable throwable,
                 String message,
                 Object... args)
Specified by:
warn in interface Logger


Copyright © 2009-2012 jclouds. All Rights Reserved.