cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

syslog_client.c File Reference
#include <syslog_client.h>
#include <printsize.h>
#include <cf3.defs.h>
Include dependency graph for syslog_client.c:

Go to the source code of this file.

Functions

void SetSyslogFacility (int facility)
 
bool SetSyslogHost (const char *host)
 
void SetSyslogPort (uint16_t port)
 
void RemoteSysLog (int log_priority, const char *log_string)
 

Variables

static char SYSLOG_HOST [MAXHOSTNAMELEN] = "localhost"
 
static uint16_t SYSLOG_PORT = 514
 
static int SYSLOG_FACILITY = LOG_USER
 

Function Documentation

◆ RemoteSysLog()

◆ SetSyslogFacility()

void SetSyslogFacility ( int  facility)

Definition at line 44 of file syslog_client.c.

References SYSLOG_FACILITY.

Referenced by GenericAgentInitialize(), and SetFacility().

◆ SetSyslogHost()

bool SetSyslogHost ( const char *  host)

Definition at line 49 of file syslog_client.c.

References SYSLOG_HOST.

Referenced by KeepControlPromises().

◆ SetSyslogPort()

void SetSyslogPort ( uint16_t  port)

Definition at line 62 of file syslog_client.c.

References SYSLOG_PORT.

Referenced by KeepControlPromises().

Variable Documentation

◆ SYSLOG_FACILITY

int SYSLOG_FACILITY = LOG_USER
static

Definition at line 41 of file syslog_client.c.

Referenced by RemoteSysLog(), and SetSyslogFacility().

◆ SYSLOG_HOST

char SYSLOG_HOST[MAXHOSTNAMELEN] = "localhost"
static

Definition at line 33 of file syslog_client.c.

Referenced by RemoteSysLog(), and SetSyslogHost().

◆ SYSLOG_PORT

uint16_t SYSLOG_PORT = 514
static

Definition at line 37 of file syslog_client.c.

Referenced by RemoteSysLog(), and SetSyslogPort().