org.apache.velocity.runtime.log
public class Log4JLogSystem extends Object implements LogSystem
Deprecated: As of v1.3. Use SimpleLog4jLogSystem
Implementation of a Log4J logger.Version: $Id: Log4JLogSystem.java,v 1.7.4.1 2004/03/03 23:22:56 geirm Exp $
Field Summary | |
---|---|
protected Layout | layout logging layout |
String | logfile the runtime.log property value |
protected Category | logger log4java logging interface |
RuntimeServices | rsvc |
Constructor Summary | |
---|---|
Log4JLogSystem()
default CTOR. |
Method Summary | |
---|---|
void | configureEmail()
Configures the logging to email |
void | configureFile()
Configures the logging to a file. |
void | configureRemote()
Configures the logging to a remote server |
void | configureSyslog()
Configures the logging to syslogd |
protected void | finalize()
Also do a shutdown if the object is destroy()'d. |
void | init(RuntimeServices rs) |
void | internalInit()
initializes the log system using the logfile argument
|
void | logVelocityMessage(int level, String message)
logs messages
|
void | shutdown() Close all destinations |
Parameters: logFile file for log messages
Parameters: level severity level message complete error message