public class KettleLogStore extends Object
Modifier and Type | Field and Description |
---|---|
static PrintStream |
OriginalSystemErr |
static PrintStream |
OriginalSystemOut |
Modifier and Type | Method and Description |
---|---|
static void |
discardLines(String parentLogChannelId,
boolean includeGeneralMessages)
Discard all the lines for the specified log channel id AND all the children.
|
static LoggingBuffer |
getAppender() |
static KettleLogStore |
getInstance() |
static int |
getLastBufferLineNr() |
static List<KettleLoggingEvent> |
getLogBufferFromTo(List<String> channelId,
boolean includeGeneral,
int from,
int to)
Get all the log lines for the specified parent log channel id (including all children)
|
static List<KettleLoggingEvent> |
getLogBufferFromTo(String parentLogChannelId,
boolean includeGeneral,
int from,
int to)
Get all the log lines pertaining to the specified parent log channel id (including all children)
|
static LogChannelInterfaceFactory |
getLogChannelInterfaceFactory() |
static void |
init() |
static void |
init(boolean redirectStdOut,
boolean redirectStdErr)
Initialize the central log store with arguments specifying whether to redirect of stdout and stderr
|
static void |
init(int maxSize,
int maxLogTimeoutMinutes)
Initialize the central log store with optional limitation to the size
|
static void |
init(int maxSize,
int maxLogTimeoutMinutes,
boolean redirectStdOut,
boolean redirectStdErr)
Initialize the central log store with optional limitation to the size and redirect of stdout and stderr
|
static boolean |
isInitialized() |
void |
replaceLogCleaner(int maxLogTimeoutMinutes) |
static void |
setLogChannelInterfaceFactory(LogChannelInterfaceFactory logChannelInterfaceFactory) |
public static final PrintStream OriginalSystemOut
public static final PrintStream OriginalSystemErr
public static LogChannelInterfaceFactory getLogChannelInterfaceFactory()
public static void setLogChannelInterfaceFactory(LogChannelInterfaceFactory logChannelInterfaceFactory)
public void replaceLogCleaner(int maxLogTimeoutMinutes)
public static void init(int maxSize, int maxLogTimeoutMinutes, boolean redirectStdOut, boolean redirectStdErr)
maxSize
- the maximum sizemaxLogTimeoutMinutes
- the maximum time that a log line times out in hoursredirectStdOut
- a boolean indicating whether to redirect stdout to the logging frameworkredirectStdErr
- a boolean indicating whether to redirect stderr to the logging frameworkpublic static void init(int maxSize, int maxLogTimeoutMinutes)
maxSize
- the maximum sizemaxLogTimeoutHours
- The maximum time that a log line times out in hours.public static void init()
public static void init(boolean redirectStdOut, boolean redirectStdErr)
redirectStdOut
- a boolean indicating whether to redirect stdout to the logging frameworkredirectStdErr
- a boolean indicating whether to redirect stderr to the logging frameworkpublic static KettleLogStore getInstance()
public static int getLastBufferLineNr()
public static List<KettleLoggingEvent> getLogBufferFromTo(String parentLogChannelId, boolean includeGeneral, int from, int to)
parentLogChannelId
- the parent log channel ID to grabincludeGeneral
- include general log linesfrom
- to
- public static List<KettleLoggingEvent> getLogBufferFromTo(List<String> channelId, boolean includeGeneral, int from, int to)
channelId
- channel IDs to grabincludeGeneral
- include general log linesfrom
- to
- public static LoggingBuffer getAppender()
public static void discardLines(String parentLogChannelId, boolean includeGeneralMessages)
parentLogChannelId
- the parent log channel id to be removed along with all its children.public static boolean isInitialized()