Public Member Functions | |
LogEntry (Long milliseconds, Integer entrytype, String file, Integer line, String routine, String host, String process, String context, String thread, String logid, Integer priority, String uri, String stackid, Integer stacklevel, String logmessage, String srcObject, String audience, String array, String antenna, Vector< AdditionalData > addDatas) | |
LogEntry (LogEntryXML logXML) | |
String | toXMLString () |
boolean | hasDatas () |
Object | getField (LogField field) |
void | addData (String name, String value) |
String | toString () |
Vector< AdditionalData > | getAdditionalData () |
LogTypeHelper | getType () |
Protected Member Functions | |
void | setField (LogField field, Object value) |
Objects of this class holds implements the ILogEntry interface representing a generic log record. This class does not contain any reference to XML parsers
com.cosylab.logging.engine.log.LogEntry.LogEntry | ( | Long | milliseconds, | |
Integer | entrytype, | |||
String | file, | |||
Integer | line, | |||
String | routine, | |||
String | host, | |||
String | process, | |||
String | context, | |||
String | thread, | |||
String | logid, | |||
Integer | priority, | |||
String | uri, | |||
String | stackid, | |||
Integer | stacklevel, | |||
String | logmessage, | |||
String | srcObject, | |||
String | audience, | |||
String | array, | |||
String | antenna, | |||
Vector< AdditionalData > | addDatas | |||
) |
Builds a LogEntry object from the value of its fields All the fields are defined in the ILogEntry interface.
milliseconds | The date | |
entrytype | The type | |
file | ... | |
line | ... | |
routine | ... | |
host | ... | |
process | ... | |
context | ... | |
thread | ... | |
logid | ... | |
priority | ... | |
uri | ... | |
stackid | ... | |
stacklevel | ... | |
logmessage | ... | |
srcObject | ... | |
audience | ... | |
array | ... | |
antenna | ... | |
addDatas | The additional data as a Vector<String> The Vector contains in the even position the name and in the odd the value. It can be null. |
com.cosylab.logging.engine.log.LogEntry.LogEntry | ( | LogEntryXML | logXML | ) |
Build a LogEntry from a LogEntryXML
logXML | The log entry |
References com.cosylab.logging.engine.log.LogEntryXML.getAdditionalData(), com.cosylab.logging.engine.log.LogEntryXML.getField(), and com.cosylab.logging.engine.log.LogEntry.setField().
void com.cosylab.logging.engine.log.LogEntry.addData | ( | String | name, | |
String | value | |||
) |
Add data to this log It is a couple, <name,value>
name | The name, i.e. the key of the pair | |
value | The value of the field |
Implements com.cosylab.logging.engine.log.ILogEntry.
Vector<AdditionalData> com.cosylab.logging.engine.log.LogEntry.getAdditionalData | ( | ) |
Implements com.cosylab.logging.engine.log.ILogEntry.
Object com.cosylab.logging.engine.log.LogEntry.getField | ( | LogField | field | ) |
field | The field to get |
Implements com.cosylab.logging.engine.log.ILogEntry.
Referenced by com.cosylab.logging.engine.log.LogEntry.toString(), and com.cosylab.logging.engine.log.LogEntry.toXMLString().
LogTypeHelper com.cosylab.logging.engine.log.LogEntry.getType | ( | ) |
Implements com.cosylab.logging.engine.log.ILogEntry.
boolean com.cosylab.logging.engine.log.LogEntry.hasDatas | ( | ) |
Implements com.cosylab.logging.engine.log.ILogEntry.
Referenced by com.cosylab.logging.engine.log.LogEntry.toXMLString().
void com.cosylab.logging.engine.log.LogEntry.setField | ( | LogField | field, | |
Object | value | |||
) | [protected] |
Sets the specified field. This method is protected since the fields are not to be modified. The only time this is called is during initialization. Creation date: (11/21/2001 18:35:10)
field | The field to set | |
value | java.lang.Object value to set |
Referenced by com.cosylab.logging.engine.log.LogEntry.LogEntry().
String com.cosylab.logging.engine.log.LogEntry.toString | ( | ) |
Return a string representation of this entry
Implements com.cosylab.logging.engine.log.ILogEntry.
References com.cosylab.logging.engine.log.LogEntry.getField(), com.cosylab.logging.engine.log.ILogEntry.AdditionalData.name, and com.cosylab.logging.engine.log.ILogEntry.AdditionalData.value.
String com.cosylab.logging.engine.log.LogEntry.toXMLString | ( | ) |
Implements com.cosylab.logging.engine.log.ILogEntry.
References com.cosylab.logging.engine.log.LogEntry.getField(), and com.cosylab.logging.engine.log.LogEntry.hasDatas().