11 #ifndef SYSLOGENTRY_H_
12 #define SYSLOGENTRY_H_
68 void*
operator new(
size_t size );
71 void operator delete(
void* p );
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
static SyslogEntry::StaticDestructor StaticDestructor_
Static instance of StaticDestructor.
Definition: SyslogEntry.h:128
virtual Str toString(const Unit *unit=NULL) const
Convert payload to Str.
Definition: SyslogEntry.cpp:175
~StaticDestructor()
Definition: SyslogEntry.cpp:23
Makes sure that mallocRing_s is deleted on shutdown.
Definition: SyslogEntry.h:121
Timespan class, represents a delta of time.
Definition: Timestamp.h:248
const CodedStr & loggerFacility_
Definition: SyslogEntry.h:115
Contains the Syslog class definition.
This is a very abstract class that can be implemented by classes that want to receive stream input...
Definition: InStream.h:29
One "entry" in a LogQueue.
Definition: LogEntry.h:33
Extends the Str class, adding an unsigned short code (actually, the codes are limited to 14 bits...
Definition: CodedStr.h:23
LogEntry with information specific to "Syslog"-like text logs.
Definition: SyslogEntry.h:54
Contains the LogEntry class definition.
static const Timestamp NOT_SET_TIME
Constant value to represent "no time".
Definition: Timestamp.h:37
Replacement for standard template class string.
Definition: Str.h:12
SyslogEntry(const Str &inMsg, Syslog::Severity sev, const CodedStr &loggerFacility, const Timestamp ×tamp=Timestamp::NOT_SET_TIME)
Constructor, initialized from a Str.
Definition: SyslogEntry.cpp:29
const Str & getMessage(void) const
Get the message.
Definition: SyslogEntry.h:94
virtual ~SyslogEntry()
Destructor.
Definition: SyslogEntry.cpp:45
Syslog::Severity severity_
Definition: SyslogEntry.h:114
static RingBufferVoid * MallocRing_
Declared as a pointer to avoid including RingBuffer.h header here.
Definition: SyslogEntry.h:118
Severity
An attempt to define different levels of syslog severity.
Definition: Syslog.h:28
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
Syslog::Severity getSeverity(void) const
Return the severity.
Definition: SyslogEntry.h:100
Str message_
The stored freetext message.
Definition: SyslogEntry.h:113
const CodedStr & getLoggerFacility(void) const
Definition: SyslogEntry.h:105
Thread-safe ring buffer for storing void pointers.
Definition: RingBuffer.h:36
virtual Str toKmlString(const Unit *unit=NULL) const
Return Str.
Definition: SyslogEntry.cpp:170
Code that represents an engineering unit.
Definition: Unit.h:24
virtual unsigned int write(Timestamp &timeBase, OutStream &logStream) const
Send payload to a stream.
Definition: SyslogEntry.cpp:138
Represents absolute times.
Definition: Timestamp.h:31
static SyslogEntry * Read(Timestamp &timeBase, Timespan &timeAdjust, InStream &inStream, unsigned short firstWord, Logger &logger)
Read new SyslogEntry from a stream.
Definition: SyslogEntry.cpp:77