org.norther.tammi.core.logger.log
Class DomainLog

java.lang.Object
  extended by org.slf4j.helpers.MarkerIgnoringBase
      extended by org.norther.tammi.acorn.logger.log.DefaultLog
          extended by org.norther.tammi.core.logger.log.DomainLog
All Implemented Interfaces:
Serializable, EventListener, Log, LoggerListener, org.slf4j.Logger

public class DomainLog
extends DefaultLog

A default implementation of Log.

Version:
$Id: DomainLog.java,v 1.14 2009/10/29 21:39:57 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.norther.tammi.acorn.logger.log.Log
Log.Level
 
Field Summary
protected  String name
           
 
Fields inherited from interface org.norther.tammi.acorn.logger.log.Log
INTERNAL_ERROR
 
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME
 
Constructor Summary
DomainLog()
          Constructs a new log.
DomainLog(String n)
          Constructs a new log for a named logger.
 
Method Summary
 Log.Level getLevel()
          Gets the log level.
protected  Localizer getLocalizer()
          Gets the localizer.
 String getName()
           
 boolean isActive()
          Checks whether this log is activated.
 boolean isLogEnabled(Log.Level level)
          Checks whether the specified level is enabled.
 void log(Log.Level level, long time, String msg, Object arg)
          Logs a message with a specific level, date and argument.
 void log(Log.Level level, long time, String msg, Object arg, Throwable cause)
          Logs a message with a specific level, date, argument and reason.
 void log(Log.Level level, Object msg)
          Logs a message with a specific level.
 void log(Log.Level level, String msg, Object arg)
          Logs a message with a specific level and argument.
 void log(Log.Level level, String msg, Object arg, Throwable cause)
          Logs a message with a specific level, argument and reason.
protected  Object readResolve()
           
 
Methods inherited from class org.norther.tammi.acorn.logger.log.DefaultLog
access, activated, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, fatal, fatal, fatal, fatal, getCause, getContext, getLogFactory, getLogger, getLoggerName, info, info, info, info, info, info, isAccessEnabled, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, localize, log, log, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn
 
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.slf4j.Logger
debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
 

Field Detail

name

protected String name
Constructor Detail

DomainLog

public DomainLog()
Constructs a new log.


DomainLog

public DomainLog(String n)
Constructs a new log for a named logger.

Parameters:
n - the named logger.
Method Detail

isLogEnabled

public boolean isLogEnabled(Log.Level level)
Description copied from interface: Log
Checks whether the specified level is enabled.

Specified by:
isLogEnabled in interface Log
Overrides:
isLogEnabled in class DefaultLog
Parameters:
level - the logging level.
Returns:
true if enabled, false otherwise.

getLevel

public Log.Level getLevel()
Description copied from interface: Log
Gets the log level.

Specified by:
getLevel in interface Log
Overrides:
getLevel in class DefaultLog
Returns:
the logging level.

log

public void log(Log.Level level,
                Object msg)
Description copied from interface: Log
Logs a message with a specific level.

Specified by:
log in interface Log
Overrides:
log in class DefaultLog
Parameters:
level - the level of the message.
msg - the message to log.

log

public void log(Log.Level level,
                String msg,
                Object arg)
Description copied from interface: Log
Logs a message with a specific level and argument.

Specified by:
log in interface Log
Overrides:
log in class DefaultLog
Parameters:
level - the level of the message.
msg - the message to log.
arg - the argument or cause.

log

public void log(Log.Level level,
                String msg,
                Object arg,
                Throwable cause)
Description copied from interface: Log
Logs a message with a specific level, argument and reason.

Specified by:
log in interface Log
Overrides:
log in class DefaultLog
Parameters:
level - the level of the message.
msg - the message to log.
arg - the argument.
cause - the cause.

log

public void log(Log.Level level,
                long time,
                String msg,
                Object arg)
Description copied from interface: Log
Logs a message with a specific level, date and argument.

Specified by:
log in interface Log
Overrides:
log in class DefaultLog
Parameters:
level - the level of the message.
time - the time of the event.
msg - the message to log.
arg - the argument or cause.

log

public void log(Log.Level level,
                long time,
                String msg,
                Object arg,
                Throwable cause)
Description copied from interface: Log
Logs a message with a specific level, date, argument and reason.

Specified by:
log in interface Log
Overrides:
log in class DefaultLog
Parameters:
level - the level of the message.
time - the time of the event.
msg - the message to log.
arg - the argument.
cause - the cause.

isActive

public boolean isActive()
Description copied from interface: Log
Checks whether this log is activated.

Specified by:
isActive in interface Log
Overrides:
isActive in class DefaultLog
Returns:
true if activated, false otherwise.

getLocalizer

protected Localizer getLocalizer()
Description copied from class: DefaultLog
Gets the localizer.

Overrides:
getLocalizer in class DefaultLog
Returns:
the localizer or null.

getName

public String getName()
Specified by:
getName in interface org.slf4j.Logger

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Throws:
ObjectStreamException


Copyright © 2004 The Norther Organization. All rights reserved.