Nut/OS  4.10.3
API Reference
syslog.c File Reference

Syslog Client. More...

#include <cfg/syslog.h>
#include <sys/confos.h>
#include <sys/confnet.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <io.h>
#include <time.h>
#include <memdebug.h>
#include <sys/syslog.h>
#include <sys/socket.h>
#include <arpa/inet.h>
Include dependency graph for syslog.c:

Go to the source code of this file.


#define SYSLOG_PORT   514


size_t syslog_header (int pri)
 Assemble syslog header.
void syslog_flush (size_t len)
 Send syslog buffer.
void vsyslog (int pri, CONST char *fmt, va_list ap)
 Print log message.
void syslog (int pri, CONST char *fmt,...)
 Print log message.
int setlogmask (int logmask)
 Set the log priority mask level.
uint32_t setlogserver (uint32_t ip, uint16_t port)
 Set the log server's IP address.
void openlog (CONST char *ident, int logstat, int logfac)
 Open logging for specialized processing.
void closelog (void)
 Release system resources occupied by syslog().


char * syslog_buf

Detailed Description

Syslog Client.

 * $Log$
 * Revision 1.5  2009/02/13 14:52:05  haraldkipp
 * Include memdebug.h for heap management debugging support.
 * Revision 1.4  2008/08/11 07:00:36  haraldkipp
 * BSD types replaced by stdint types (feature request #1282721).
 * Revision 1.3  2005/08/02 17:47:04  haraldkipp
 * Major API documentation update.
 * Revision 1.2  2004/10/03 18:41:43  haraldkipp
 * RAM saving calls added
 * Revision 1.1  2004/09/19 11:18:45  haraldkipp
 * Syslog client added

Definition in file syslog.c.

Define Documentation


Definition at line 98 of file syslog.c.

#define SYSLOG_PORT   514

Definition at line 108 of file syslog.c.