31#ifndef _SYSLOG_CLIENT_H
32#define _SYSLOG_CLIENT_H
38#ifndef SYSLOG_CLIENT_SUPPORT
39 #define SYSLOG_CLIENT_SUPPORT DISABLED
40#elif (SYSLOG_CLIENT_SUPPORT != ENABLED && SYSLOG_CLIENT_SUPPORT != DISABLED)
41 #error SYSLOG_CLIENT_SUPPORT parameter is not valid
45#ifndef SYSLOG_CLIENT_BUFFER_SIZE
46 #define SYSLOG_CLIENT_BUFFER_SIZE 512
47#elif (SYSLOG_CLIENT_BUFFER_SIZE < 128)
48 #error SYSLOG_CLIENT_BUFFER_SIZE parameter is not valid
52#ifndef SYSLOG_CLIENT_PRIVATE_CONTEXT
53 #define SYSLOG_CLIENT_PRIVATE_CONTEXT
121 char_t buffer[SYSLOG_CLIENT_BUFFER_SIZE];
122 SYSLOG_CLIENT_PRIVATE_CONTEXT
130 NetInterface *interface);
133 const IpAddr *serverIpAddr, uint16_t serverPort);
136 uint_t severity,
const char_t *message);
139 uint_t severity,
const char_t *format, ...);
error_t
Error codes.
Definition error.h:43
uint_t OsMutex
Mutex object.
Definition os_port_none.h:118
IP network address.
Definition ip.h:72
Syslog client context.
Definition syslog_client.h:117
Socket * socket
Underlying UDP socket.
Definition syslog_client.h:120
NetInterface * interface
Underlying network interface.
Definition syslog_client.h:119
OsMutex mutex
Mutex preventing simultaneous access to the context.
Definition syslog_client.h:118
SyslogFacility
Syslog facility values.
Definition syslog_client.h:67
@ SYSLOG_FACILITY_LOCAL3
Local use 3.
Definition syslog_client.h:87
@ SYSLOG_FACILITY_LOCAL0
Local use 0.
Definition syslog_client.h:84
@ SYSLOG_FACILITY_LOG_AUDIT
Log audit.
Definition syslog_client.h:81
@ SYSLOG_FACILITY_NETWORK_NEWS
Network news subsystem.
Definition syslog_client.h:75
@ SYSLOG_FACILITY_NTP
NTP subsystem.
Definition syslog_client.h:80
@ SYSLOG_FACILITY_KERNEL
Kernel messages.
Definition syslog_client.h:68
@ SYSLOG_FACILITY_LOG_ALERT
Log alert.
Definition syslog_client.h:82
@ SYSLOG_FACILITY_LOCAL4
Local use 4.
Definition syslog_client.h:88
@ SYSLOG_FACILITY_Clock
Clock daemon.
Definition syslog_client.h:83
@ SYSLOG_FACILITY_MAIL
Mail system.
Definition syslog_client.h:70
@ SYSLOG_FACILITY_SEC_AUTH2
Security/authorization messages.
Definition syslog_client.h:78
@ SYSLOG_FACILITY_LOCAL6
Local use 6.
Definition syslog_client.h:90
@ SYSLOG_FACILITY_LOCAL7
Local use 7.
Definition syslog_client.h:91
@ SYSLOG_FACILITY_LINE_PRINTER
Line printer subsystem.
Definition syslog_client.h:74
@ SYSLOG_FACILITY_INTENAL
Messages generated internally by syslogd.
Definition syslog_client.h:73
@ SYSLOG_FACILITY_FTP
FTP daemon.
Definition syslog_client.h:79
@ SYSLOG_FACILITY_SYSTEM
System daemons.
Definition syslog_client.h:71
@ SYSLOG_FACILITY_LOCAL5
Local use 5.
Definition syslog_client.h:89
@ SYSLOG_FACILITY_LOCAL2
Local use 2.
Definition syslog_client.h:86
@ SYSLOG_FACILITY_LOCAL1
Local use 1.
Definition syslog_client.h:85
@ SYSLOG_FACILITY_SEC_AUTH
Security/authorization messages.
Definition syslog_client.h:72
@ SYSLOG_FACILITY_UUCP
UUCP subsystem.
Definition syslog_client.h:76
@ SYSLOG_FACILITY_USER_LEVEL
User-level messages.
Definition syslog_client.h:69
@ SYSLOG_FACILITY_CLOCK
Clock daemon.
Definition syslog_client.h:77
SyslogSeverity
Syslog severity values.
Definition syslog_client.h:100
@ SYSLOG_SEVERITY_ALERT
Action must be taken immediately.
Definition syslog_client.h:102
@ SYSLOG_SEVERITY_ERROR
Error conditions.
Definition syslog_client.h:104
@ SYSLOG_SEVERITY_WARNING
Warning conditions.
Definition syslog_client.h:105
@ SYSLOG_SEVERITY_NOTICE
Normal but significant condition.
Definition syslog_client.h:106
@ SYSLOG_SEVERITY_DEBUG
Debug-level messages.
Definition syslog_client.h:108
@ SYSLOG_SEVERITY_CRITICAL
Critical conditions.
Definition syslog_client.h:103
@ SYSLOG_SEVERITY_EMERGENCY
System is unusable.
Definition syslog_client.h:101
@ SYSLOG_SEVERITY_INFO
Informational messages.
Definition syslog_client.h:107