com::cosylab::logging::engine::log::LogEntry Class Reference

Inheritance diagram for com::cosylab::logging::engine::log::LogEntry:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::logging::engine::log::LogEntry:
Collaboration graph
[legend]

List of all members.

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< AdditionalDatagetAdditionalData ()
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

Detailed Description

Objects of this class holds implements the ILogEntry interface representing a generic log record. This class does not contain any reference to XML parsers

Author:
acaproni

Constructor & Destructor Documentation

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.

Parameters:
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.
See also:
LogEntryXML.getAdditionalData
ILogEntry

References additionalData, date, logId, logMessage, sourceObject, stackId, stackLevel, and type.

com::cosylab::logging::engine::log::LogEntry::LogEntry ( LogEntryXML  logXML  )  [inline]

Member Function Documentation

void com::cosylab::logging::engine::log::LogEntry::addData ( String  name,
String  value 
) [inline]

Add data to this log It is a couple, <name,value>

Parameters:
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]
Object com::cosylab::logging::engine::log::LogEntry::getField ( LogField  field  )  [inline]
Parameters:
field The field to get
Returns:
The object of the given index

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]
boolean com::cosylab::logging::engine::log::LogEntry::hasDatas (  )  [inline]
Returns:
True if the log has additional data

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)

Parameters:
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]
String com::cosylab::logging::engine::log::LogEntry::toXMLString (  )  [inline]
Returns:
an XML string representing this log

Implements com::cosylab::logging::engine::log::ILogEntry.

References getField(), getXMLDatas(), hasDatas(), logMessage, and type.


Member Data Documentation

Vector<LogEntry.AdditionalData> com::cosylab::logging::engine::log::LogEntry::additionalData = null [private]

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), LogEntry(), setField(), and toString().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), LogEntry(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), LogEntry(), and setField().

Referenced by getField(), LogEntry(), and setField().

Referenced by getField(), LogEntry(), and setField().

Referenced by getField(), and setField().

Referenced by getField(), and setField().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2