| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Logger
Abstract mechanism for dealing with logs from various objects. Implementations are expected to have a constructor that takes a single String representing the name of the logging item, or an empty constructor.
LoggerFactory| Method Summary | |
|---|---|
 void | 
debug(Object message)
Log a message at debug level.  | 
 void | 
debug(Object message,
      Throwable exception)
Log a message at debug level.  | 
 void | 
debug(String message,
      Object... args)
Log a formatted message at debug level.  | 
 void | 
error(Object message)
Log a message at error level.  | 
 void | 
error(Object message,
      Throwable exception)
Log a message at error level.  | 
 void | 
error(String message,
      Object... args)
Log a formatted message at debug level.  | 
 void | 
fatal(Object message)
Log a message at fatal level.  | 
 void | 
fatal(Object message,
      Throwable exception)
Log a message at fatal level.  | 
 void | 
fatal(String message,
      Object... args)
Log a formatted message at debug level.  | 
 String | 
getName()
Get the name of this logger.  | 
 void | 
info(Object message)
Log a message at info level.  | 
 void | 
info(Object message,
     Throwable exception)
Log a message at info level.  | 
 void | 
info(String message,
     Object... args)
Log a formatted message at info level.  | 
 boolean | 
isDebugEnabled()
True if debug is enabled for this logger.  | 
 boolean | 
isInfoEnabled()
True if info is enabled for this logger.  | 
 void | 
log(Level level,
    Object message)
Log a message at the specified level.  | 
 void | 
log(Level level,
    Object message,
    Throwable exception)
Log a message at the specified level.  | 
 void | 
warn(Object message)
Log a message at warning level.  | 
 void | 
warn(Object message,
     Throwable exception)
Log a message at warning level.  | 
 void | 
warn(String message,
     Object... args)
Log a formatted message at debug level.  | 
| Method Detail | 
|---|
String getName()
boolean isDebugEnabled()
boolean isInfoEnabled()
void log(Level level,
         Object message,
         Throwable exception)
level - the level at which to logmessage - the message to logexception - an exception that caused the message
void log(Level level,
         Object message)
level - the level at which to logmessage - the message to log
void debug(Object message,
           Throwable exception)
message - the message to logexception - the exception that caused the message to be generatedvoid debug(Object message)
message - the message to log
void debug(String message,
           Object... args)
message - the message to logargs - the arguments for that message
void info(Object message,
          Throwable exception)
message - the message to logexception - the exception that caused the message to be generatedvoid info(Object message)
message - the message to log
void info(String message,
          Object... args)
message - the message to logargs - the arguments for that message
void warn(Object message,
          Throwable exception)
message - the message to logexception - the exception that caused the message to be generatedvoid warn(Object message)
message - the message to log
void warn(String message,
          Object... args)
message - the message to logargs - the arguments for that message
void error(Object message,
           Throwable exception)
message - the message to logexception - the exception that caused the message to be generatedvoid error(Object message)
message - the message to log
void error(String message,
           Object... args)
message - the message to logargs - the arguments for that message
void fatal(Object message,
           Throwable exception)
message - the message to logexception - the exception that caused the message to be generatedvoid fatal(Object message)
message - the message to log
void fatal(String message,
           Object... args)
message - the message to logargs - the arguments for that message
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||