Go to the documentation of this file.
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
133 const IpAddr *serverIpAddr, uint16_t serverPort);
@ SYSLOG_SEVERITY_CRITICAL
Critical conditions.
@ SYSLOG_FACILITY_LOCAL7
Local use 7.
@ SYSLOG_FACILITY_NETWORK_NEWS
Network news subsystem.
@ SYSLOG_SEVERITY_ALERT
Action must be taken immediately.
@ SYSLOG_FACILITY_INTENAL
Messages generated internally by syslogd.
@ SYSLOG_FACILITY_SEC_AUTH2
Security/authorization messages.
@ SYSLOG_FACILITY_SEC_AUTH
Security/authorization messages.
SyslogSeverity
Syslog severity values.
void syslogClientDeinit(SyslogClientContext *context)
Release Syslog client context.
error_t syslogClientClose(SyslogClientContext *context)
Close the connection with the Syslog server.
@ SYSLOG_SEVERITY_ERROR
Error conditions.
error_t syslogClientFormatMessage(SyslogClientContext *context, uint_t facility, uint_t severity, const char_t *format,...)
Format Syslog message.
@ SYSLOG_SEVERITY_NOTICE
Normal but significant condition.
@ SYSLOG_SEVERITY_DEBUG
Debug-level messages.
#define SYSLOG_CLIENT_BUFFER_SIZE
@ SYSLOG_FACILITY_LOCAL3
Local use 3.
@ SYSLOG_FACILITY_LINE_PRINTER
Line printer subsystem.
error_t syslogClientSendMessage(SyslogClientContext *context, uint_t facility, uint_t severity, const char_t *message)
Send Syslog message.
@ SYSLOG_FACILITY_UUCP
UUCP subsystem.
error_t syslogClientConnect(SyslogClientContext *context, const IpAddr *serverIpAddr, uint16_t serverPort)
Specify the address of the Syslog server.
@ SYSLOG_SEVERITY_EMERGENCY
System is unusable.
@ SYSLOG_FACILITY_LOCAL2
Local use 2.
@ SYSLOG_FACILITY_Clock
Clock daemon.
@ SYSLOG_FACILITY_LOCAL1
Local use 1.
@ SYSLOG_FACILITY_LOCAL4
Local use 4.
@ SYSLOG_FACILITY_USER_LEVEL
User-level messages.
@ SYSLOG_FACILITY_NTP
NTP subsystem.
@ SYSLOG_FACILITY_LOCAL0
Local use 0.
@ SYSLOG_SEVERITY_WARNING
Warning conditions.
@ SYSLOG_FACILITY_LOG_AUDIT
Log audit.
@ SYSLOG_FACILITY_SYSTEM
System daemons.
@ SYSLOG_FACILITY_MAIL
Mail system.
@ SYSLOG_FACILITY_LOCAL6
Local use 6.
@ SYSLOG_FACILITY_CLOCK
Clock daemon.
Socket * socket
Underlying UDP socket.
@ SYSLOG_SEVERITY_INFO
Informational messages.
error_t syslogClientBindToInterface(SyslogClientContext *context, NetInterface *interface)
Bind the Syslog client to a particular network interface.
NetInterface * interface
Underlying network interface.
@ SYSLOG_FACILITY_KERNEL
Kernel messages.
OsMutex mutex
Mutex preventing simultaneous access to the context.
@ SYSLOG_FACILITY_LOG_ALERT
Log alert.
error_t syslogClientInit(SyslogClientContext *context)
Syslog client initialization.
SyslogFacility
Syslog facility values.
@ SYSLOG_FACILITY_LOCAL5
Local use 5.
@ SYSLOG_FACILITY_FTP
FTP daemon.
#define SYSLOG_CLIENT_PRIVATE_CONTEXT