Rudiments
Public Member Functions | List of all members
syslogdestination Class Reference

#include <logger.h>

Inherits logdestination.

Public Member Functions

 syslogdestination ()
 
virtual ~syslogdestination ()
 
void open (const char *ident, int32_t option, int32_t facility, int32_t priority)
 
void close ()
 
- Public Member Functions inherited from object
virtual ~object ()
 

Detailed Description

The syslogdestination class writes log data to syslog.

Constructor & Destructor Documentation

◆ syslogdestination()

syslogdestination::syslogdestination ( )

Creates an instance of the syslogdestination class.

◆ ~syslogdestination()

virtual syslogdestination::~syslogdestination ( )
virtual

Deletes this instance of the syslogdestination class.

Member Function Documentation

◆ close()

void syslogdestination::close ( )

Closes the syslog as a loggin destination.

◆ open()

void syslogdestination::open ( const char * ident,
int32_t option,
int32_t facility,
int32_t priority )

Opens the syslog as a logging destination using "option", "facility" and "priority". The string "ident" will be prepended to each message.