SimpleLog4jLogSystempublic 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)
LogSystemprivate void internalInit()
throws java.lang.Exception
logFile - file for log messagesjava.lang.Exceptionprivate void configureFile()
throws java.lang.Exception
java.lang.Exceptionprivate void configureRemote()
throws java.lang.Exception
java.lang.Exceptionprivate void configureSyslog()
throws java.lang.Exception
java.lang.Exceptionprivate void configureEmail()
throws java.lang.Exception
java.lang.Exceptionpublic void logVelocityMessage(int level,
java.lang.String message)
logVelocityMessage in interface LogSystemlevel - severity levelmessage - complete error messageprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void shutdown()
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.