OOP MimeParser Version 3.5

com.bentofw.util
Class Logger4Jdk

java.lang.Object
  extended by com.bentofw.util.Logger4Jdk
All Implemented Interfaces:
GenericLogger

public class Logger4Jdk
extends java.lang.Object
implements GenericLogger

GenericLogger implementation for Java Logging API that is introduced in JDK 1.4 .

Author:
Jun Inamori

Constructor Summary
Logger4Jdk(java.util.logging.Logger logger)
          Constructor that takes Logger object in Java Logging API.
 
Method Summary
 void log(java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg)
          Log a message, specifying source class and method.
 void log(java.util.logging.Level level, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.String msg, java.lang.Throwable thrown)
          Log a message, specifying source class and method, with associated Throwable information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger4Jdk

public Logger4Jdk(java.util.logging.Logger logger)
Constructor that takes Logger object in Java Logging API.

Parameters:
logger - Logger object in Java Logging API
Method Detail

log

public void log(java.util.logging.Level level,
                java.lang.String sourceClass,
                java.lang.String sourceMethod,
                java.lang.String msg)
Log a message, specifying source class and method.

Specified by:
log in interface GenericLogger
Parameters:
level - One of the message level identifiers, e.g. SEVERE
sourceClass - name of class that issued the logging request
sourceMethod - name of method that issued the logging request
msg - The string message

log

public void log(java.util.logging.Level level,
                java.lang.String sourceClass,
                java.lang.String sourceMethod,
                java.lang.String msg,
                java.lang.Throwable thrown)
Log a message, specifying source class and method, with associated Throwable information.

Specified by:
log in interface GenericLogger
Parameters:
level - One of the message level identifiers, e.g. SEVERE
sourceClass - name of class that issued the logging request
sourceMethod - name of method that issued the logging request
msg - The string message
thrown - Throwable associated with log message

OOP MimeParser Version 3.5

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.