U

usersyslog

(deprecated)

usersyslog - redirect syslog accesses to a specific unix socket.

Rationale
---------

The need is to customise the socket used to send log lines to syslog, so as
to direct logging of processes to a user-specified (typically, user-controlled)
syslog daemon. Useful for software packages only able to log via syslog
(ex: postfix).
User syslog daemon must be able to bind to non-default socket path.

Limitations
-----------

This library relies on LD_PRELOAD mechanism, so it inherits its limitations
(it will not work on suid binaries, ...).

Requirements
------------

- make
- gcc (source uses __attribute__)
- glibc (source uses RTLD_NEXT)

Building
--------

Just run "make".

Usage
-----

$ LOG_SOCKET=/path/to/custom/log/socket LD_PRELOAD=/path/to/usersyslog <command>

`usersyslog` is also an executable wrapper that appends itself to LD_PRELOAD:

$ LOG_SOCKET=/path/to/custom/log/socket usersyslog <command>