java.lang.Object |
↳ |
org.apache.log4j.lf5.util.LogFileParser |
Class Overview
Provides utility methods for input and output streams.
Summary
Public Methods |
void
|
parse(LogBrokerMonitor monitor)
Starts a new thread to parse the log file and create a LogRecord.
|
void
|
run()
Parses the file and creates new log records and adds the record
to the monitor.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
java.lang.Runnable
|
Constants
public
static
final
String
ATTRIBUTE_DELIMITER
Constant Value:
"[slf5s."
public
static
final
String
CATEGORY_DELIMITER
Constant Value:
"[slf5s.CATEGORY]"
public
static
final
String
DATE_DELIMITER
Constant Value:
"[slf5s.DATE]"
public
static
final
String
LOCATION_DELIMITER
Constant Value:
"[slf5s.LOCATION]"
public
static
final
String
MESSAGE_DELIMITER
Constant Value:
"[slf5s.MESSAGE]"
public
static
final
String
NDC_DELIMITER
Constant Value:
"[slf5s.NDC]"
public
static
final
String
PRIORITY_DELIMITER
Constant Value:
"[slf5s.PRIORITY]"
public
static
final
String
RECORD_DELIMITER
Constant Value:
"[slf5s.start]"
public
static
final
String
THREAD_DELIMITER
Constant Value:
"[slf5s.THREAD]"
Public Constructors
public
LogFileParser
(File file)
Throws
FileNotFoundException
| |
IOException
| |
public
LogFileParser
(InputStream stream)
Public Methods
Starts a new thread to parse the log file and create a LogRecord.
See run().
public
void
run
()
Parses the file and creates new log records and adds the record
to the monitor.
Protected Methods
protected
void
displayError
(String message)