5 Cent tip for today [ Syslogger ]

Featuring the Dragonfly web framework
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

5 Cent tip for today [ Syslogger ]

Post by newdep »

#!/usr/bin/newlisp
;
; Simple and quick syslogger (udp listener)
; > newlisp syslog
;
; filtering syslog output (because there is officialy a standard
; for syslog information) you can sharpen the output, even to file
; per incoming mached id.
;
; Use (pretty-print xxx) to extend console width output.
(pretty-print 256)

; And this is it..."4444" could be a syslog port
(until (net-error) (println (net-receive-udp 4444 1024 )))
(exit)



Norman.

Locked