JTools

org.jtools.logging
Class AbstractLogger

java.lang.Object
  extended by org.jtools.logging.AbstractLogger
All Implemented Interfaces:
org.jpattern.logging.Logger
Direct Known Subclasses:
AbstractMappedLogger, DelegatedLogger

public abstract class AbstractLogger
extends Object
implements org.jpattern.logging.Logger


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpattern.logging.Logger
org.jpattern.logging.Logger.Support
 
Constructor Summary
protected AbstractLogger(org.jpattern.logging.LogFactory factory)
           
 
Method Summary
abstract  void forceLog(org.jpattern.logging.Loggable loggable)
           
 org.jpattern.logging.LogFactory getFactory()
           
 org.jpattern.condition.Condition<org.jpattern.logging.Loggable> getTraceFilter()
           
abstract  boolean isLoggable(org.jpattern.logging.Level level)
           
 boolean isLoggable(org.jpattern.logging.Loggable logRecord)
           
 void log(org.jpattern.logging.Level level, Throwable cause, Object msg, Object... params)
           
 void log(org.jpattern.logging.Loggable loggable)
           
 void logp(org.jpattern.logging.Level level, Class sourceClass, String sourceMethodName, Throwable cause, Object msg, Object... params)
           
 void logrb(org.jpattern.logging.Level level, Class sourceClass, String sourceMethodName, String resourceBundleName, Throwable cause, Object msg, Object... params)
           
 void setTraceFilter(org.jpattern.condition.Condition<org.jpattern.logging.Loggable> filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpattern.logging.Logger
newLogRecord
 

Constructor Detail

AbstractLogger

protected AbstractLogger(org.jpattern.logging.LogFactory factory)
Method Detail

log

public final void log(org.jpattern.logging.Level level,
                      Throwable cause,
                      Object msg,
                      Object... params)
Specified by:
log in interface org.jpattern.logging.Logger

logp

public void logp(org.jpattern.logging.Level level,
                 Class sourceClass,
                 String sourceMethodName,
                 Throwable cause,
                 Object msg,
                 Object... params)
Specified by:
logp in interface org.jpattern.logging.Logger

logrb

public void logrb(org.jpattern.logging.Level level,
                  Class sourceClass,
                  String sourceMethodName,
                  String resourceBundleName,
                  Throwable cause,
                  Object msg,
                  Object... params)
Specified by:
logrb in interface org.jpattern.logging.Logger

log

public final void log(org.jpattern.logging.Loggable loggable)
Specified by:
log in interface org.jpattern.logging.Logger

forceLog

public abstract void forceLog(org.jpattern.logging.Loggable loggable)
Specified by:
forceLog in interface org.jpattern.logging.Logger

isLoggable

public abstract boolean isLoggable(org.jpattern.logging.Level level)
Specified by:
isLoggable in interface org.jpattern.logging.Logger

isLoggable

public final boolean isLoggable(org.jpattern.logging.Loggable logRecord)
Specified by:
isLoggable in interface org.jpattern.logging.Logger

setTraceFilter

public void setTraceFilter(org.jpattern.condition.Condition<org.jpattern.logging.Loggable> filter)
Specified by:
setTraceFilter in interface org.jpattern.logging.Logger

getTraceFilter

public org.jpattern.condition.Condition<org.jpattern.logging.Loggable> getTraceFilter()
Specified by:
getTraceFilter in interface org.jpattern.logging.Logger

getFactory

public org.jpattern.logging.LogFactory getFactory()
Specified by:
getFactory in interface org.jpattern.logging.Logger

JTools

© 2000-2006, JTools.org.