This library contains an implementation of syslog client that can send syslog mesages to a remote server via UDP protocol.

The latest version 1.1.0 can be downloaded via this link.

Supported features

Library provides basic functionality of a syslog client. It allows as well redirecting of logMsg() and printf() output to syslog server by installing a special driver, so that you do not have to modify your existing code to add syslogging. Enabling standard output redirection will also redirect everything user types and sees in target's console.

Syslog client works the same way as logMsg() function does. It sends a message to a dedicated queue. A separate syslog task then fetches the message from the queue and sends it to a server as an UDP message.

Configuration and usage:

In order to make the client functional, you have to define two environmental variables: SYSLOG_HOST and SYSLOG_PORT. The first one defines a host name or an IP address of your syslog server, and the other one is for syslog port number. According to specification syslog port should be set to 514 for UDP. But if your syslog server listens to a different port, you have to change this value. Variables SYSLOG_HOST and SYSLOG_PORT can be defined in your boot script using setenv function:

setenv SYSLOG_PORT 514

For syslog client usage example, please follow this link or take a look at example.c file contained in syslog package.

©2010 by Arthur Benilov

Project Web Hosted by