ROSE
0.11.96.11
|
Sends messages to the syslog daemon.
Thread safety: Unknown (depends on whether syslog is thread-safe).
#include <Message.h>
Public Member Functions | |
virtual void | post (const Mesg &, const MesgProps &) |
Causes a message to be emitted. More... | |
Public Member Functions inherited from Sawyer::Message::Destination | |
virtual void | bakeDestinations (const MesgProps &, BakedDestinations &baked) |
Bakes message properties according to the plumbing lattice. More... | |
MesgProps | mergePropertiesNS (const MesgProps &props) |
Merge properties of this lattice node into the specified properties. More... | |
const MesgProps & | defaultPropertiesNS () const |
Default values for message properties. More... | |
MesgProps & | defaultPropertiesNS () |
Default values for message properties. More... | |
const MesgProps & | overridePropertiesNS () const |
Overrides message properties. More... | |
MesgProps & | overridePropertiesNS () |
Overrides message properties. More... | |
Public Member Functions inherited from Sawyer::SharedObject | |
SharedObject () | |
Default constructor. More... | |
SharedObject (const SharedObject &) | |
Copy constructor. More... | |
virtual | ~SharedObject () |
Virtual destructor. More... | |
SharedObject & | operator= (const SharedObject &) |
Assignment. More... | |
Public Member Functions inherited from Sawyer::SharedFromThis< Destination > | |
SharedPointer< Destination > | sharedFromThis () |
Create a shared pointer from this . More... | |
SharedPointer< const Destination > | sharedFromThis () const |
Create a shared pointer from this . More... | |
Static Public Member Functions | |
static SyslogSinkPtr | instance (const char *ident, int option, int facility) |
Allocating constructor. More... | |
Protected Member Functions | |
SyslogSink (const char *ident, int option, int facility) | |
Constructor for derived classes. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Sawyer::Message::Destination | |
Sawyer::SynchronizationTraits< Sawyer::SingleThreadedTag >::RecursiveMutex | mutex_ |
Mutex protecting data members here and in subclasses. | |
MesgProps | dflts_ |
Default properties merged into each incoming message. | |
MesgProps | overrides_ |
Override properties applied to incoming message. | |
|
protected |
Constructor for derived classes.
Non-subclass users should use instance instead.
|
inlinestatic |
Allocating constructor.
Constructs a new message sink that sends messages to the syslog daemon. The syslog API doesn't use a handle to refer to the syslog, nor does it specify what happens when openlog
is called more than once, or whether the ident
string is copied. Best practice is to use only constant strings as the ident
argument.
|
virtual |
Causes a message to be emitted.
The bakedProperties
argument is one of the values returned by the bakeDestinations method.
Implements Sawyer::Message::Destination.