public class STAFLogRecord
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
date
The date part of the time stamp field.
|
int |
handle
The handle field of the record.
|
java.lang.String |
level
The level field of the record.
|
java.lang.String |
machine
The machine field of the record.
|
java.lang.String |
message
The actual log message.
|
java.lang.String |
processName
The name field of the record.
|
java.lang.String |
time
The time part of the time stamp field.
|
| Constructor and Description |
|---|
STAFLogRecord(java.lang.String record)
Constructs a
STAFLogRecord. |
STAFLogRecord(java.lang.String record,
char sep)
Creates a
STAFLogRecord from a record string. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
parseMessage(java.lang.String record)
Parses a log record and returns the message field.
|
static java.lang.String |
parseMessage(java.lang.String record,
char sep)
Parses a log record and returns the message field.
|
public java.lang.String date
public java.lang.String time
public java.lang.String machine
public int handle
public java.lang.String processName
public java.lang.String level
public java.lang.String message
public STAFLogRecord(java.lang.String record,
char sep)
STAFLogRecord from a record string.
record - the full log record as returned by STAF.sep - the field separator character.public STAFLogRecord(java.lang.String record)
STAFLogRecord.
'|' is used as the field separator.
record - the full log record as returned by STAF.public static java.lang.String parseMessage(java.lang.String record,
char sep)
This method is more efficient than the constructor.
record - the full log record as returned by STAF.sep - the field separator character.public static java.lang.String parseMessage(java.lang.String record)
'|' is used as the field separator. This method is more efficient than the constructor.
record - the full log record as returned by STAF.Copyright © SAS Institute. All Rights Reserved.