Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 (Field field)
void addData (String name, String value)
String toString ()
Vector< AdditionalData > getAdditionalData ()
LogTypeHelper getType ()

Protected Member Functions

void setField (Field 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

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

Build a LogEntry from a LogEntryXML

Parameters:
logXML The log entry
See also:
LogEntryXML


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.

Vector<AdditionalData> com::cosylab::logging::engine::log::LogEntry::getAdditionalData  )  [inline]
 

See also:
ILogEntry

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

Object com::cosylab::logging::engine::log::LogEntry::getField Field  field  )  [inline]
 

Parameters:
field The field to get
Returns:
The object of the given index

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

LogTypeHelper com::cosylab::logging::engine::log::LogEntry::getType  )  [inline]
 

See also:
ILogEntry

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

StringBuilder com::cosylab::logging::engine::log::LogEntry::getXMLDatas  )  [inline, private]
 

Returns:
The XML representation of the additional data

boolean com::cosylab::logging::engine::log::LogEntry::hasDatas  )  [inline]
 

Returns:
True if the log has additional data

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

void com::cosylab::logging::engine::log::LogEntry::setField Field  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

String com::cosylab::logging::engine::log::LogEntry::toString  )  [inline]
 

Return a string representation of this entry

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

String com::cosylab::logging::engine::log::LogEntry::toXMLString  )  [inline]
 

Returns:
an XML string representing this log

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


Member Data Documentation

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

String com::cosylab::logging::engine::log::LogEntry::antenna [private]
 

String com::cosylab::logging::engine::log::LogEntry::array [private]
 

String com::cosylab::logging::engine::log::LogEntry::audience [private]
 

String com::cosylab::logging::engine::log::LogEntry::context [private]
 

Long com::cosylab::logging::engine::log::LogEntry::date [private]
 

String com::cosylab::logging::engine::log::LogEntry::file [private]
 

String com::cosylab::logging::engine::log::LogEntry::host [private]
 

Integer com::cosylab::logging::engine::log::LogEntry::line [private]
 

String com::cosylab::logging::engine::log::LogEntry::logId [private]
 

String com::cosylab::logging::engine::log::LogEntry::logMessage [private]
 

Integer com::cosylab::logging::engine::log::LogEntry::priority [private]
 

String com::cosylab::logging::engine::log::LogEntry::process [private]
 

String com::cosylab::logging::engine::log::LogEntry::routine [private]
 

String com::cosylab::logging::engine::log::LogEntry::sourceObject [private]
 

String com::cosylab::logging::engine::log::LogEntry::stackId [private]
 

Integer com::cosylab::logging::engine::log::LogEntry::stackLevel [private]
 

String com::cosylab::logging::engine::log::LogEntry::thread [private]
 

LogTypeHelper com::cosylab::logging::engine::log::LogEntry::type [private]
 

String com::cosylab::logging::engine::log::LogEntry::uri [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:13:12 2009 for ACS Java API by doxygen 1.3.8