com.ibm.di.api.syslog
Class LogUtils

java.lang.Object
  extended by com.ibm.di.api.syslog.LogUtils

public class LogUtils
extends Object


Field Summary
static String AL_LOG_DIR_PREFIX
           
static String EH_LOG_DIR_PREFIX
           
static String ROOT_LOG_DIR
           
 
Constructor Summary
LogUtils()
           
 
Method Summary
static void cleanAllOldALLogs(Date aMinDate)
           
static void cleanAllOldALLogs(int aKeepNum)
           
static void cleanAllOldEHLogs(Date aMinDate)
           
static void cleanAllOldEHLogs(int aKeepNum)
           
static void cleanAllOldLogs(Date aMinDate)
           
static void cleanAllOldLogs(int aKeepNum)
           
static Boolean cleanOldALLogs(String aConfigId, String aALName, Date aMinDate)
           
static Boolean cleanOldALLogs(String aConfigId, String aALName, int aKeepNum)
           
static Boolean cleanOldEHLogs(String aConfigId, String aEHName, Date aMinDate)
           
static Boolean cleanOldEHLogs(String aConfigId, String aEHName, int aKeepNum)
           
static String getALLastLogFileName(String aConfigId, String aALName)
           
static String getALLog(String aConfigId, String aALName, String aLogFileName)
           
static String[] getALLogFileNames(String aConfigId, String aALName)
           
static String getALLogLastChunk(String aConfigId, String aALName, String aLogFileName, int aKilobytes)
           
static String[] getAvailableComponentLogFiles(String aComponentTypeDir, String aConfigId, String aComponentName)
           
static String getCleanConfigId(String aConfigId)
           
static String getComponentLog(String aLogFileName)
           
static String getComponentLogLastChunk(String aLogFileName, int aKilobytes)
           
static String getEHLastLogFileName(String aConfigId, String aEHName)
           
static String getEHLog(String aConfigId, String aEHName, String aLogFileName)
           
static String[] getEHLogFileNames(String aConfigId, String aEHName)
           
static String getEHLogLastChunk(String aConfigId, String aEHName, String aLogFileName, int aKilobytes)
           
static SystemLogAppender getSystemLogAppender(Log aLog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_LOG_DIR

public static final String ROOT_LOG_DIR
See Also:
Constant Field Values

AL_LOG_DIR_PREFIX

public static final String AL_LOG_DIR_PREFIX
See Also:
Constant Field Values

EH_LOG_DIR_PREFIX

public static final String EH_LOG_DIR_PREFIX
See Also:
Constant Field Values
Constructor Detail

LogUtils

public LogUtils()
Method Detail

getSystemLogAppender

public static SystemLogAppender getSystemLogAppender(Log aLog)

getComponentLog

public static String getComponentLog(String aLogFileName)
                              throws DIException
Throws:
DIException

getComponentLogLastChunk

public static String getComponentLogLastChunk(String aLogFileName,
                                              int aKilobytes)
                                       throws DIException
Throws:
DIException

getALLogFileNames

public static String[] getALLogFileNames(String aConfigId,
                                         String aALName)
                                  throws DIException
Throws:
DIException

getALLastLogFileName

public static String getALLastLogFileName(String aConfigId,
                                          String aALName)
                                   throws DIException
Throws:
DIException

getALLog

public static String getALLog(String aConfigId,
                              String aALName,
                              String aLogFileName)
                       throws DIException
Throws:
DIException

getALLogLastChunk

public static String getALLogLastChunk(String aConfigId,
                                       String aALName,
                                       String aLogFileName,
                                       int aKilobytes)
                                throws DIException
Throws:
DIException

getEHLogFileNames

public static String[] getEHLogFileNames(String aConfigId,
                                         String aEHName)
                                  throws DIException
Throws:
DIException

getEHLastLogFileName

public static String getEHLastLogFileName(String aConfigId,
                                          String aEHName)
                                   throws DIException
Throws:
DIException

getEHLog

public static String getEHLog(String aConfigId,
                              String aEHName,
                              String aLogFileName)
                       throws DIException
Throws:
DIException

getEHLogLastChunk

public static String getEHLogLastChunk(String aConfigId,
                                       String aEHName,
                                       String aLogFileName,
                                       int aKilobytes)
                                throws DIException
Throws:
DIException

getAvailableComponentLogFiles

public static String[] getAvailableComponentLogFiles(String aComponentTypeDir,
                                                     String aConfigId,
                                                     String aComponentName)

getCleanConfigId

public static String getCleanConfigId(String aConfigId)

cleanAllOldLogs

public static void cleanAllOldLogs(Date aMinDate)
                            throws DIException
Throws:
DIException

cleanAllOldLogs

public static void cleanAllOldLogs(int aKeepNum)
                            throws DIException
Throws:
DIException

cleanAllOldALLogs

public static void cleanAllOldALLogs(Date aMinDate)
                              throws DIException
Throws:
DIException

cleanAllOldALLogs

public static void cleanAllOldALLogs(int aKeepNum)
                              throws DIException
Throws:
DIException

cleanAllOldEHLogs

public static void cleanAllOldEHLogs(Date aMinDate)
                              throws DIException
Throws:
DIException

cleanAllOldEHLogs

public static void cleanAllOldEHLogs(int aKeepNum)
                              throws DIException
Throws:
DIException

cleanOldALLogs

public static Boolean cleanOldALLogs(String aConfigId,
                                     String aALName,
                                     Date aMinDate)
                              throws DIException
Throws:
DIException

cleanOldALLogs

public static Boolean cleanOldALLogs(String aConfigId,
                                     String aALName,
                                     int aKeepNum)
                              throws DIException
Throws:
DIException

cleanOldEHLogs

public static Boolean cleanOldEHLogs(String aConfigId,
                                     String aEHName,
                                     Date aMinDate)
                              throws DIException
Throws:
DIException

cleanOldEHLogs

public static Boolean cleanOldEHLogs(String aConfigId,
                                     String aEHName,
                                     int aKeepNum)
                              throws DIException
Throws:
DIException