|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.velocity.runtime.log.Log4JLogSystem
SimpleLog4jLogSystem
Implementation of a Log4J logger.
Field Summary | |
protected org.apache.log4j.Layout |
layout
Deprecated. logging layout |
private java.lang.String |
logfile
Deprecated. the runtime.log property value |
protected org.apache.log4j.Category |
logger
Deprecated. log4java logging interface |
private RuntimeServices |
rsvc
Deprecated. |
Fields inherited from interface org.apache.velocity.runtime.log.LogSystem |
DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID |
Constructor Summary | |
Log4JLogSystem()
Deprecated. default CTOR. |
Method Summary | |
private void |
configureEmail()
Deprecated. Configures the logging to email |
private void |
configureFile()
Deprecated. Configures the logging to a file. |
private void |
configureRemote()
Deprecated. Configures the logging to a remote server |
private void |
configureSyslog()
Deprecated. Configures the logging to syslogd |
protected void |
finalize()
Deprecated. Also do a shutdown if the object is destroy()'d. |
void |
init(RuntimeServices rs)
Deprecated. init() |
private void |
internalInit()
Deprecated. initializes the log system using the logfile argument |
void |
logVelocityMessage(int level,
java.lang.String message)
Deprecated. logs messages |
void |
shutdown()
Deprecated. Close all destinations |
Methods inherited from class java.lang.Object |
|
Field Detail |
private RuntimeServices rsvc
protected org.apache.log4j.Category logger
protected org.apache.log4j.Layout layout
private java.lang.String logfile
Constructor Detail |
public Log4JLogSystem()
Method Detail |
public void init(RuntimeServices rs)
LogSystem
init
in interface LogSystem
private void internalInit() throws java.lang.Exception
logFile
- file for log messagesprivate void configureFile() throws java.lang.Exception
private void configureRemote() throws java.lang.Exception
private void configureSyslog() throws java.lang.Exception
private void configureEmail() throws java.lang.Exception
public void logVelocityMessage(int level, java.lang.String message)
logVelocityMessage
in interface LogSystem
level
- severity levelmessage
- complete error messageprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
public void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |