Package com.ibm.di.api.syslog
Class SystemLogAppender
- java.lang.Object
-
- com.ibm.di.api.syslog.SystemLogAppender
-
public class SystemLogAppender extends java.lang.ObjectThis class extend theFileAppenderclass and defines API for writing logs to system files.
-
-
Constructor Summary
Constructors Constructor Description SystemLogAppender()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateFileName()Creates a simple and absolute file name with the name of the component and current date in the root directory specified by theLogUtilsclass.java.lang.StringgetComponentName()Retrieves component name.java.lang.StringgetConfigId()Retrieves configuration ID.java.lang.StringgetFile()Returns absolute path for the log file.java.lang.StringgetFileName()Retrieves file name.intgetMaxGenerations()voidsetComponentName(java.lang.String aComponentName)Sets the name of the component.voidsetConfigId(java.lang.String aConfigId)Sets the configuration id.voidsetConfigInstance(java.lang.Object configInstance)Sets the configuration id using a configInstance.voidsetMaxGenerations(java.lang.String number)Sets max generations of log files
-
-
-
Method Detail
-
setComponentName
public void setComponentName(java.lang.String aComponentName) throws java.lang.ExceptionSets the name of the component.- Parameters:
aComponentName- String ,AssemblyLine- Throws:
java.lang.Exception- : never.
-
getComponentName
public java.lang.String getComponentName() throws java.lang.ExceptionRetrieves component name.- Returns:
- String. The component name.
- Throws:
java.lang.Exception- : never.
-
setConfigId
public void setConfigId(java.lang.String aConfigId) throws java.lang.ExceptionSets the configuration id.- Parameters:
aConfigId- String- Throws:
java.lang.Exception- : never.
-
setConfigInstance
public void setConfigInstance(java.lang.Object configInstance) throws java.lang.ExceptionSets the configuration id using a configInstance.- Parameters:
configInstance- object implementingRSInterface.- Throws:
java.lang.Exception- if configuration cannot be set.
-
getConfigId
public java.lang.String getConfigId() throws java.lang.ExceptionRetrieves configuration ID.- Returns:
- the configuration id.
- Throws:
java.lang.Exception- : never
-
getFileName
public java.lang.String getFileName()
Retrieves file name.- Returns:
- String, the file name.
-
setMaxGenerations
public void setMaxGenerations(java.lang.String number)
Sets max generations of log files- Parameters:
number-
-
generateFileName
public void generateFileName() throws java.lang.ExceptionCreates a simple and absolute file name with the name of the component and current date in the root directory specified by theLogUtilsclass.- Throws:
java.lang.Exception- if the component type has not been assigned.
-
getFile
public java.lang.String getFile()
Returns absolute path for the log file.- Returns:
-
getMaxGenerations
public int getMaxGenerations()
-
-