

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) |
Private Member Functions | |
| StringBuilder | getXMLDatas () |
Private Attributes | |
| Long | date |
| LogTypeHelper | type |
| 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 | sourceObject |
| String | audience |
| String | array |
| String | antenna |
| Vector< LogEntry.AdditionalData > | additionalData = null |
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 | |||
| ) | [inline] |
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. |
References additionalData, date, logId, logMessage, sourceObject, stackId, stackLevel, and type.
| com::cosylab::logging::engine::log::LogEntry::LogEntry | ( | LogEntryXML | logXML | ) | [inline] |
Build a LogEntry from a LogEntryXML
| logXML | The log entry |
References additionalData, com::cosylab::logging::engine::log::LogEntryXML::getAdditionalData(), com::cosylab::logging::engine::log::LogEntryXML::getField(), and setField().
| void com::cosylab::logging::engine::log::LogEntry::addData | ( | String | name, | |
| String | value | |||
| ) | [inline] |
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.
References additionalData.
| Vector<AdditionalData> com::cosylab::logging::engine::log::LogEntry::getAdditionalData | ( | ) | [inline] |
Implements com::cosylab::logging::engine::log::ILogEntry.
References additionalData.
| Object com::cosylab::logging::engine::log::LogEntry::getField | ( | LogField | field | ) | [inline] |
| field | The field to get |
Implements com::cosylab::logging::engine::log::ILogEntry.
References antenna, array, audience, context, date, file, host, line, logId, logMessage, priority, process, routine, sourceObject, stackId, stackLevel, thread, type, and uri.
Referenced by toString(), and toXMLString().
| LogTypeHelper com::cosylab::logging::engine::log::LogEntry::getType | ( | ) | [inline] |
| StringBuilder com::cosylab::logging::engine::log::LogEntry::getXMLDatas | ( | ) | [inline, private] |
References additionalData, com::cosylab::logging::engine::log::ILogEntry::AdditionalData::name, and com::cosylab::logging::engine::log::ILogEntry::AdditionalData::value.
Referenced by toXMLString().
| boolean com::cosylab::logging::engine::log::LogEntry::hasDatas | ( | ) | [inline] |
Implements com::cosylab::logging::engine::log::ILogEntry.
References additionalData.
Referenced by toXMLString().
| void com::cosylab::logging::engine::log::LogEntry::setField | ( | LogField | field, | |
| Object | value | |||
| ) | [inline, 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 |
References antenna, array, audience, context, date, file, host, line, logId, logMessage, priority, process, routine, sourceObject, stackId, stackLevel, thread, type, and uri.
Referenced by LogEntry().
| String com::cosylab::logging::engine::log::LogEntry::toString | ( | ) | [inline] |
Return a string representation of this entry
Implements com::cosylab::logging::engine::log::ILogEntry.
References additionalData, date, getField(), com::cosylab::logging::engine::log::ILogEntry::AdditionalData::name, type, and com::cosylab::logging::engine::log::ILogEntry::AdditionalData::value.
| String com::cosylab::logging::engine::log::LogEntry::toXMLString | ( | ) | [inline] |
Implements com::cosylab::logging::engine::log::ILogEntry.
References getField(), getXMLDatas(), hasDatas(), logMessage, and type.
Vector<LogEntry.AdditionalData> com::cosylab::logging::engine::log::LogEntry::additionalData = null [private] |
Referenced by addData(), getAdditionalData(), getXMLDatas(), hasDatas(), LogEntry(), and toString().
String com::cosylab::logging::engine::log::LogEntry::antenna [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::array [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::audience [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::context [private] |
Referenced by getField(), and setField().
Long com::cosylab::logging::engine::log::LogEntry::date [private] |
Referenced by getField(), LogEntry(), setField(), and toString().
String com::cosylab::logging::engine::log::LogEntry::file [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::host [private] |
Referenced by getField(), and setField().
Integer com::cosylab::logging::engine::log::LogEntry::line [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::logId [private] |
Referenced by getField(), LogEntry(), and setField().
String com::cosylab::logging::engine::log::LogEntry::logMessage [private] |
Referenced by getField(), LogEntry(), setField(), and toXMLString().
Integer com::cosylab::logging::engine::log::LogEntry::priority [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::process [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::routine [private] |
Referenced by getField(), and setField().
String com::cosylab::logging::engine::log::LogEntry::sourceObject [private] |
Referenced by getField(), LogEntry(), and setField().
String com::cosylab::logging::engine::log::LogEntry::stackId [private] |
Referenced by getField(), LogEntry(), and setField().
Integer com::cosylab::logging::engine::log::LogEntry::stackLevel [private] |
Referenced by getField(), LogEntry(), and setField().
String com::cosylab::logging::engine::log::LogEntry::thread [private] |
Referenced by getField(), and setField().
Referenced by getField(), getType(), LogEntry(), setField(), toString(), and toXMLString().
String com::cosylab::logging::engine::log::LogEntry::uri [private] |
Referenced by getField(), and setField().
1.6.2