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