[BusyBox] syslog prefix patch

Jason Luther jason at airwave.com
Thu Jan 3 13:21:04 UTC 2002


This patch allows the user to prepend an arbitrary prefix to syslog messages
when network logging is enabled.

I tried to stick to the BusyBox coding style, but I wasn't able to avoid
putting in "#ifdef BB_FEATURE_SYSLOG_PREFIX ... #endif" blocks.

This feature adds 184 bytes on my i386 system.

This is the additional usage message:
    -p PREFIX Prepend PREFIX to messages when network logging is enabled

So invoking "syslogd -L -R 10.2.27.100 -p PREFIX" on 10.2.27.8 gives you
this in the remote log:
  Jan  3 12:18:22 10.2.27.8 PREFIX syslogd started: BusyBox v0.60.3-pre
(2002.01.03-20:15+0000)

The patch is generated from today's snapshot. Any suggestions are
appreciated.

Cheers,
Jason
jason at ixid.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslogprefix.patch
Type: application/octet-stream
Size: 3528 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020103/739064eb/attachment.obj 


More information about the busybox mailing list