public class LogDistillation extends Object implements Serializable
GUI
or with Ant
tasks
.LogDistiller
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
LogDistillation.Category |
class |
LogDistillation.Group |
static class |
LogDistillation.Plugin |
Modifier and Type | Field and Description |
---|---|
static String |
LINE_SEPARATOR |
Constructor and Description |
---|
LogDistillation(LogDistiller ld) |
Modifier and Type | Method and Description |
---|---|
void |
begin()
begin the distillation
|
void |
end()
end the distillation
|
long |
getBeginTime() |
LogDistillation.Category[] |
getCategories() |
LogDistillation.Category |
getCategory(String id) |
String |
getContent() |
LogDistiller |
getDefinition() |
long |
getEndTime() |
long |
getEventBytes() |
int |
getEventCount() |
LogDistillation.Group |
getGroup(String id) |
LogDistillation.Group[] |
getGroups() |
LogType.Description |
getLogTypeDescription() |
long |
getSkippedEventBytes() |
int |
getSkippedEventCount() |
String |
getVersion()
What is the version of LogDistiller that was used to create this instance?
|
List<LogDistillation.Category> |
listCategoriesToReport() |
List<LogDistillation.Group> |
listGroupsToReport() |
File |
newDestinationFile(String filename) |
void |
processLogEvent(LogEvent le)
Process a log event
|
void |
saveTo(File file)
Saves the distillation to a file, in Java serialized format.
|
void |
saveTo(OutputStream out) |
public static final String LINE_SEPARATOR
public LogDistillation(LogDistiller ld)
public void begin() throws IOException
IOException
public void processLogEvent(LogEvent le) throws IOException
le
- LogEvent the log eventIOException
- if an error occurs when (eventually) saving the log eventpublic void end() throws IOException
IOException
- if an error occurs when closing the files where log events were (eventually) savedpublic void saveTo(File file) throws IOException
file
- File destination file.IOException
public void saveTo(OutputStream out) throws IOException
IOException
public List<LogDistillation.Category> listCategoriesToReport()
public List<LogDistillation.Group> listGroupsToReport()
public LogDistiller getDefinition()
public LogDistillation.Group[] getGroups()
public LogDistillation.Group getGroup(String id)
public LogDistillation.Category[] getCategories()
public LogDistillation.Category getCategory(String id)
public String getContent()
public int getEventCount()
public long getEventBytes()
public long getBeginTime()
public long getEndTime()
public int getSkippedEventCount()
public long getSkippedEventBytes()
public File newDestinationFile(String filename)
public LogType.Description getLogTypeDescription()
public String getVersion()
Copyright © 2004–2014. All rights reserved.