syslog_client.c
error_t socketSend(Socket *socket, const void *data, size_t length, size_t *written, uint_t flags)
Send data to a connected socket.
Definition: socket.c:1486
error_t syslogClientInit(SyslogClientContext *context)
Syslog client initialization.
Definition: syslog_client.c:56
Syslog client.
void syslogClientDeinit(SyslogClientContext *context)
Release Syslog client context.
Definition: syslog_client.c:331
size_t syslogClientFormatTimestamp(time_t time, char_t *buffer)
Format timestamp.
Definition: syslog_client_misc.c:50
error_t syslogClientClose(SyslogClientContext *context)
Close the connection with the Syslog server.
Definition: syslog_client.c:308
error_t syslogClientSendMessage(SyslogClientContext *context, uint_t facility, uint_t severity, const char_t *message)
Send Syslog message.
Definition: syslog_client.c:168
error_t syslogClientFormatMessage(SyslogClientContext *context, uint_t facility, uint_t severity, const char_t *format,...)
Format Syslog message.
Definition: syslog_client.c:241
error_t socketConnect(Socket *socket, const IpAddr *remoteIpAddr, uint16_t remotePort)
Establish a connection to a specified socket.
Definition: socket.c:1349
error_t syslogClientConnect(SyslogClientContext *context, const IpAddr *serverIpAddr, uint16_t serverPort)
Specify the address of the Syslog server.
Definition: syslog_client.c:109
Socket * socketOpen(uint_t type, uint_t protocol)
Create a socket (UDP or TCP)
Definition: socket.c:125
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
error_t syslogClientBindToInterface(SyslogClientContext *context, NetInterface *interface)
Bind the Syslog client to a particular network interface.
Definition: syslog_client.c:86
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
Helper functions for Syslog client.
Debugging facilities.