Electroneum
el::SysLogInitializer Class Reference

Initializes syslog with process ID, options and facility. calls closelog() on d'tor. More...

#include <easylogging++.h>

Public Member Functions

 SysLogInitializer (const char *processIdent, int options=0, int facility=0)
 
virtual ~SysLogInitializer (void)
 

Detailed Description

Initializes syslog with process ID, options and facility. calls closelog() on d'tor.

Definition at line 3696 of file easylogging++.h.

Constructor & Destructor Documentation

◆ SysLogInitializer()

el::SysLogInitializer::SysLogInitializer ( const char *  processIdent,
int  options = 0,
int  facility = 0 
)
inline

Definition at line 3698 of file easylogging++.h.

3698  {
3699 #if defined(ELPP_SYSLOG)
3700  openlog(processIdent, options, facility);
3701 #else
3702  ELPP_UNUSED(processIdent);
3703  ELPP_UNUSED(options);
3704  ELPP_UNUSED(facility);
3705 #endif // defined(ELPP_SYSLOG)
3706  }
#define ELPP_UNUSED(x)

◆ ~SysLogInitializer()

virtual el::SysLogInitializer::~SysLogInitializer ( void  )
inlinevirtual

Definition at line 3707 of file easylogging++.h.

3707  {
3708 #if defined(ELPP_SYSLOG)
3709  closelog();
3710 #endif // defined(ELPP_SYSLOG)
3711  }

The documentation for this class was generated from the following file: