Public Member Functions | Protected Member Functions

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

Inheritance diagram for com.cosylab.logging.engine.log.LogEntry:
com.cosylab.logging.engine.log.ILogEntry

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)

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 
)

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
com.cosylab.logging.engine.log.LogEntry.LogEntry ( LogEntryXML  logXML  ) 

Member Function Documentation

void com.cosylab.logging.engine.log.LogEntry.addData ( String  name,
String  value 
)

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.

Vector<AdditionalData> com.cosylab.logging.engine.log.LogEntry.getAdditionalData (  ) 
Object com.cosylab.logging.engine.log.LogEntry.getField ( LogField  field  ) 
Parameters:
field The field to get
Returns:
The object of the given index

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

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)

Parameters:
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 (  ) 
String com.cosylab.logging.engine.log.LogEntry.toXMLString (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties