Jetif v1.8.0

jetif.ext
Class Log4jLogger

java.lang.Object
  extended byjetif.ext.Log4jLogger
All Implemented Interfaces:
Logger

public class Log4jLogger
extends Object
implements Logger

This class Log4jLogger is a wrapper class of Log4J logger. It allows the user log message with a Log4J logger.

Author:
Vicky Wang

Field Summary
static String LOG4J_CONFIG
           
 
Fields inherited from interface jetif.Logger
DUMMY_LOGGER, ERROR, EXCEPTION, FATAL_ERROR, INFO, WARNING
 
Constructor Summary
Log4jLogger()
           
 
Method Summary
 void close()
          Close this logger
 void log(int severity, String msg)
          Log a string message with specified severity level.
 void log(String msg)
          Log a string message with default severity level.
 void log(Throwable e)
          Log a exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_CONFIG

public static final String LOG4J_CONFIG
See Also:
Constant Field Values
Constructor Detail

Log4jLogger

public Log4jLogger()
Method Detail

log

public void log(String msg)
Description copied from interface: Logger
Log a string message with default severity level.

Specified by:
log in interface Logger
Parameters:
msg - the message content.

log

public void log(int severity,
                String msg)
Description copied from interface: Logger
Log a string message with specified severity level.

Specified by:
log in interface Logger
Parameters:
severity - the severity level
msg - the message content.

log

public void log(Throwable e)
Description copied from interface: Logger
Log a exception.

Specified by:
log in interface Logger
Parameters:
e - the exception.

close

public void close()
Description copied from interface: Logger
Close this logger

Specified by:
close in interface Logger

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.