|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.AppenderSkeleton
org.apache.log4j.WriterAppender
org.apache.log4j.FileAppender
com.ibm.di.api.syslog.SystemLogAppender
public class SystemLogAppender
This class extend the FileAppender
class and defines API for writing
logs to system files.
Field Summary |
---|
Fields inherited from class org.apache.log4j.FileAppender |
---|
bufferedIO, bufferSize, fileAppend, fileName |
Fields inherited from class org.apache.log4j.WriterAppender |
---|
encoding, immediateFlush, qw |
Fields inherited from class org.apache.log4j.AppenderSkeleton |
---|
closed, errorHandler, headFilter, layout, name, tailFilter, threshold |
Constructor Summary | |
---|---|
SystemLogAppender()
Default constructor |
|
SystemLogAppender(String aComponentType,
String aComponentName,
String aLogPattern,
String aConfigId)
Class constructor |
Method Summary | |
---|---|
void |
activateOptions()
If the component and it`s name are assigned and the log patters is not null this method sets a layout , constructs and sets file
name and opens the file where the log output will go. |
String |
getComponentName()
Retrieves component name. |
String |
getComponentType()
Returns the component type. |
String |
getConfigId()
Retrieves configuration ID. |
String |
getFileName()
Retrives file name. |
String |
getLogPattern()
Retrieves log pattern. |
void |
setComponentName(String aComponentName)
Sets the name of the component. |
void |
setComponentType(String aComponentType)
Sets the component type |
void |
setConfigId(String aConfigId)
Sets the configuration id. |
void |
setConfigInstance(Object configInstance)
Sets the configuration id using a configInstance. |
void |
setLogPattern(String aLogPattern)
Sets the log pattern. |
Methods inherited from class org.apache.log4j.FileAppender |
---|
closeFile, getAppend, getBufferedIO, getBufferSize, getFile, reset, setAppend, setBufferedIO, setBufferSize, setFile, setFile, setQWForFiles |
Methods inherited from class org.apache.log4j.WriterAppender |
---|
append, checkEntryConditions, close, closeWriter, createWriter, getEncoding, getImmediateFlush, requiresLayout, setEncoding, setErrorHandler, setImmediateFlush, setWriter, subAppend, writeFooter, writeHeader |
Methods inherited from class org.apache.log4j.AppenderSkeleton |
---|
addFilter, clearFilters, doAppend, finalize, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setLayout, setName, setThreshold |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemLogAppender() throws Exception
Exception:
- never
Exception
public SystemLogAppender(String aComponentType, String aComponentName, String aLogPattern, String aConfigId) throws Exception
aComponentType
- AssemblyLine
aComponentName
- StringaLogPattern
- StringaConfigId
- String
Exception
- if an error occurs.Method Detail |
---|
public void setComponentType(String aComponentType) throws Exception
aComponentType
- String, AssemblyLine
Exception
- if argument is not a valid component typepublic String getComponentType() throws Exception
Exception
- if a component type has not been assigned.public void setComponentName(String aComponentName) throws Exception
aComponentName
- String , AssemblyLine
Exception
- :
never.public String getComponentName() throws Exception
Exception
- :
never.public void setConfigId(String aConfigId) throws Exception
aConfigId
- String
Exception
- :
never.public void setConfigInstance(Object configInstance) throws Exception
configInstance
- object implementing RSInterface
.
Exception
- if configuration cannot be set.public String getConfigId() throws Exception
Exception
- :
neverpublic void setLogPattern(String aLogPattern) throws Exception
aLogPattern
- String
Exception
- :
never.public String getLogPattern() throws Exception
Exception
- :
never.public String getFileName()
public void activateOptions()
null
this method sets a layout , constructs and sets file
name and opens the file where the log output will go.
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.FileAppender
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |