syslog.c File Reference

SYSLOG implementation. More...

#include "syslog.h"
#include "cfg/cfg_syslog.h"
#include <cpu/byteorder.h>
#include <lwip/ip_addr.h>
#include <lwip/netif.h>
#include <lwip/netbuf.h>
#include <lwip/tcpip.h>
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Functions

uint32_t syslog_count (void)
 Return the number of log message has been sent.
struct ip_addr syslog_ip (void)
 Get the current syslog server address, in lwip ip_address format.
void syslog_setIp (struct ip_addr addr)
 Change the current syslog server ip address.
int syslog_printf (const char *fmt,...)
 Print the log message on upd socket and serial if you configure the macro CONFIG_SYSLOG_SERIAL in cfg_syslog.h,.
void syslog_init (SysLog *syslog_ctx, struct ip_addr addr)
 Init the syslog message.

Detailed Description

SYSLOG implementation.

Author:
Daniele Basile <asterix@develer.com>

Definition in file syslog.c.