mx4j.log

Class Log4JLogger


public class Log4JLogger
extends Logger

Log that redirects log calls to a Log4J Logger.

Version:
$Revision: 1.7 $
See Also:
at Apache's Log4J

Field Summary

Fields inherited from class mx4j.log.Logger

DEBUG, ERROR, FATAL, INFO, TRACE, WARN

Constructor Summary

Log4JLogger()
This constructor is called to create instances of this Logger, following the prototype pattern.

Method Summary

protected Level
convertPriority(int mx4jPriority)
Converts MX4J priority to Log4J priority
protected void
log(int priority, Object message, Throwable t)
protected void
setCategory(String category)

Methods inherited from class mx4j.log.Logger

debug, debug, error, error, fatal, fatal, getCategory, getPriority, info, info, isEnabledFor, log, setCategory, setPriority, trace, trace, warn, warn

Constructor Details

Log4JLogger

public Log4JLogger()
This constructor is called to create instances of this Logger, following the prototype pattern.

Method Details

convertPriority

protected Level convertPriority(int mx4jPriority)
Converts MX4J priority to Log4J priority

log

protected void log(int priority,
                   Object message,
                   Throwable t)
Overrides:
log in interface Logger

setCategory

protected void setCategory(String category)
Overrides:
setCategory in interface Logger

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.