org.freecompany.util.multicaster
Class LoggerNotification

java.lang.Object
  extended by org.freecompany.util.multicaster.LoggerNotification
All Implemented Interfaces:
Notification

public class LoggerNotification
extends java.lang.Object
implements Notification

Notification implementation that generates log messages describing each notification event. This notification system enhances the flexibility of the core logging framework by allowing configurable control to some expensive features of the built in logger, such as calling class inferrence.


Field Summary
protected  boolean infer
           
protected  java.util.logging.Logger logger
           
protected  boolean mask
           
protected  boolean trace
           
 
Constructor Summary
LoggerNotification()
           
LoggerNotification(boolean infer, boolean trace, boolean mask)
           
LoggerNotification(java.lang.String name)
           
LoggerNotification(java.lang.String name, boolean infer, boolean trace, boolean mask)
           
 
Method Summary
 void debug(java.lang.String message, java.lang.Object... arguments)
           
 void debug(java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void debug(java.lang.Throwable t, java.lang.Object... arguments)
           
static void enableBuffering()
           
 void fatal(java.lang.String message, java.lang.Object... arguments)
           
 void fatal(java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void fatal(java.lang.Throwable t, java.lang.Object... arguments)
           
 void infer(boolean infer)
           
 void info(java.lang.String message, java.lang.Object... arguments)
           
 void info(java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void info(java.lang.Throwable t, java.lang.Object... arguments)
           
protected  void log(java.util.logging.Level level, java.lang.String message, java.lang.String clazz, java.lang.String method, java.lang.Throwable t, java.lang.Object... arguments)
           
protected  void log(java.util.logging.Level level, java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void mask(boolean mask)
           
protected  java.util.logging.LogRecord record(java.util.logging.Level level, java.lang.String message, java.lang.String clazz, java.lang.String method, java.lang.Throwable t, java.lang.Object... arguments)
           
protected  java.util.logging.LogRecord record(java.util.logging.Level level, java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void severe(java.lang.String message, java.lang.Object... arguments)
           
 void severe(java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void severe(java.lang.Throwable t, java.lang.Object... arguments)
           
 void trace(boolean trace)
           
 void warning(java.lang.String message, java.lang.Object... arguments)
           
 void warning(java.lang.String message, java.lang.Throwable t, java.lang.Object... arguments)
           
 void warning(java.lang.Throwable t, java.lang.Object... arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final java.util.logging.Logger logger

infer

protected boolean infer

trace

protected boolean trace

mask

protected boolean mask
Constructor Detail

LoggerNotification

public LoggerNotification()

LoggerNotification

public LoggerNotification(java.lang.String name)

LoggerNotification

public LoggerNotification(boolean infer,
                          boolean trace,
                          boolean mask)

LoggerNotification

public LoggerNotification(java.lang.String name,
                          boolean infer,
                          boolean trace,
                          boolean mask)
Method Detail

enableBuffering

public static void enableBuffering()

log

protected final void log(java.util.logging.Level level,
                         java.lang.String message,
                         java.lang.Throwable t,
                         java.lang.Object... arguments)

log

protected final void log(java.util.logging.Level level,
                         java.lang.String message,
                         java.lang.String clazz,
                         java.lang.String method,
                         java.lang.Throwable t,
                         java.lang.Object... arguments)

record

protected final java.util.logging.LogRecord record(java.util.logging.Level level,
                                                   java.lang.String message,
                                                   java.lang.Throwable t,
                                                   java.lang.Object... arguments)

record

protected final java.util.logging.LogRecord record(java.util.logging.Level level,
                                                   java.lang.String message,
                                                   java.lang.String clazz,
                                                   java.lang.String method,
                                                   java.lang.Throwable t,
                                                   java.lang.Object... arguments)

infer

public void infer(boolean infer)

trace

public void trace(boolean trace)

mask

public void mask(boolean mask)

debug

public final void debug(java.lang.Throwable t,
                        java.lang.Object... arguments)
Specified by:
debug in interface Notification

debug

public final void debug(java.lang.String message,
                        java.lang.Object... arguments)
Specified by:
debug in interface Notification

debug

public final void debug(java.lang.String message,
                        java.lang.Throwable t,
                        java.lang.Object... arguments)
Specified by:
debug in interface Notification

info

public final void info(java.lang.Throwable t,
                       java.lang.Object... arguments)
Specified by:
info in interface Notification

info

public final void info(java.lang.String message,
                       java.lang.Object... arguments)
Specified by:
info in interface Notification

info

public final void info(java.lang.String message,
                       java.lang.Throwable t,
                       java.lang.Object... arguments)
Specified by:
info in interface Notification

warning

public final void warning(java.lang.Throwable t,
                          java.lang.Object... arguments)
Specified by:
warning in interface Notification

warning

public final void warning(java.lang.String message,
                          java.lang.Object... arguments)
Specified by:
warning in interface Notification

warning

public final void warning(java.lang.String message,
                          java.lang.Throwable t,
                          java.lang.Object... arguments)
Specified by:
warning in interface Notification

severe

public final void severe(java.lang.Throwable t,
                         java.lang.Object... arguments)
Specified by:
severe in interface Notification

severe

public final void severe(java.lang.String message,
                         java.lang.Object... arguments)
Specified by:
severe in interface Notification

severe

public final void severe(java.lang.String message,
                         java.lang.Throwable t,
                         java.lang.Object... arguments)
Specified by:
severe in interface Notification

fatal

public final void fatal(java.lang.Throwable t,
                        java.lang.Object... arguments)
Specified by:
fatal in interface Notification

fatal

public final void fatal(java.lang.String message,
                        java.lang.Object... arguments)
Specified by:
fatal in interface Notification

fatal

public final void fatal(java.lang.String message,
                        java.lang.Throwable t,
                        java.lang.Object... arguments)
Specified by:
fatal in interface Notification