org.apache.velocity.runtime.log
SimpleLog4jLogSystem
public class Log4JLogSystem extends java.lang.Object implements LogSystem
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
Log4JLogSystem()
Deprecated.
default CTOR.
|
Modifier and Type | Method and Description |
---|---|
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
|
private RuntimeServices rsvc
protected org.apache.log4j.Category logger
protected org.apache.log4j.Layout layout
private java.lang.String logfile
public Log4JLogSystem()
public void init(RuntimeServices rs)
LogSystem
private void internalInit() throws java.lang.Exception
logFile
- file for log messagesjava.lang.Exception
private void configureFile() throws java.lang.Exception
java.lang.Exception
private void configureRemote() throws java.lang.Exception
java.lang.Exception
private void configureSyslog() throws java.lang.Exception
java.lang.Exception
private void configureEmail() throws java.lang.Exception
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
java.lang.Throwable
public void shutdown()
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.