org.identityconnectors.common.logging.impl
Class NoOpLogger

java.lang.Object
  extended by org.identityconnectors.common.logging.impl.NoOpLogger
All Implemented Interfaces:
LogSpi

public class NoOpLogger
extends Object
implements LogSpi

No operation logger. This LogSpi does nothing it is synonymous with /dev/null.

Since:
1.0
Version:
$Revision: 1.4 $
Author:
Will Droste

Constructor Summary
NoOpLogger()
           
 
Method Summary
 boolean isLoggable(Class<?> clazz, Log.Level level)
          Always returns false because there nothing to do.
 void log(Class<?> clazz, String methodName, Log.Level level, String message, Throwable ex)
          Logs nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpLogger

public NoOpLogger()
Method Detail

log

public void log(Class<?> clazz,
                String methodName,
                Log.Level level,
                String message,
                Throwable ex)
Logs nothing. Its a black hole command.

Specified by:
log in interface LogSpi

isLoggable

public boolean isLoggable(Class<?> clazz,
                          Log.Level level)
Always returns false because there nothing to do.

Specified by:
isLoggable in interface LogSpi


Copyright © 2011. All Rights Reserved.