* RE: syslog opinion
@ 2003-08-19 20:52 Richard Williams
2003-08-20 7:56 ` Chris Simmonds
0 siblings, 1 reply; 3+ messages in thread
From: Richard Williams @ 2003-08-19 20:52 UTC (permalink / raw)
To: 'Todd', linux
We are using busybox syslog. It is quite slow compared with writing to a
file although so far it is coping. Syslog remote logging uses UDP and I have
found it to be useless as many messages are lost. We log to a local file on
our embedded ramdisk and then telnet in and cat or tail to look at it. You
still need a way to limit the log file size. I have thought about writing a
driver that implements a circular buffer to send syslog output to but for
now I just delete the file if it gets too big.
Richard
-----Original Message-----
From: Todd [mailto:to_dd@yahoo.com]
Sent: Wednesday, 20 August 2003 3:25 a.m.
To: linux
Subject: syslog opinion
I was wondering if anyone has an opinion on using the
syslog function to log events in an embedded system.
What the pros and cons might be between using syslog
(with its large feature set) vs. writing a simple
logging utility. I'm not giving too many deatils
about what I'm trying to accomplish, since I'd rather
hear about other people's experiences have been.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: syslog opinion
2003-08-19 20:52 syslog opinion Richard Williams
@ 2003-08-20 7:56 ` Chris Simmonds
0 siblings, 0 replies; 3+ messages in thread
From: Chris Simmonds @ 2003-08-20 7:56 UTC (permalink / raw)
To: Richard Williams; +Cc: 'Todd', linux
Hi,
Why not use busybox syslogd, which has precisely this feature. Busybox
is at www.busybox.net. Get the latest stable version, 0.60.5, edit the
Config.h file and make sure you enable BB_FEATURE_IPC_SYSLOG. Start
syslogd with the -C switch and all messages are held in a circular
buffer. Its only 16KB by default, but you can patch the code to make it
bigger if necessary. You read the log using the command logread. I use
it a lot in my embedded projects.
Hope this helps,
Chris Simmonds
Richard Williams wrote:
>We are using busybox syslog. It is quite slow compared with writing to a
>file although so far it is coping. Syslog remote logging uses UDP and I have
>found it to be useless as many messages are lost. We log to a local file on
>our embedded ramdisk and then telnet in and cat or tail to look at it. You
>still need a way to limit the log file size. I have thought about writing a
>driver that implements a circular buffer to send syslog output to but for
>now I just delete the file if it gets too big.
>
>Richard
>
>-----Original Message-----
>From: Todd [mailto:to_dd@yahoo.com]
>Sent: Wednesday, 20 August 2003 3:25 a.m.
>To: linux
>Subject: syslog opinion
>
>
>
>I was wondering if anyone has an opinion on using the
>syslog function to log events in an embedded system.
>What the pros and cons might be between using syslog
>(with its large feature set) vs. writing a simple
>logging utility. I'm not giving too many deatils
>about what I'm trying to accomplish, since I'd rather
>hear about other people's experiences have been.
>
>
>
>
--
Chris Simmonds 2net Limited
chris@2net.co.uk http://www.2net.co.uk/
Tel: +44 (0)1962 869003 Fax: +44 (0)870 056 7556
"If it's not connected, it's not effective"(tm)
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* syslog opinion
@ 2003-08-19 15:24 Todd
0 siblings, 0 replies; 3+ messages in thread
From: Todd @ 2003-08-19 15:24 UTC (permalink / raw)
To: linux
I was wondering if anyone has an opinion on using the
syslog function to log events in an embedded system.
What the pros and cons might be between using syslog
(with its large feature set) vs. writing a simple
logging utility. I'm not giving too many deatils
about what I'm trying to accomplish, since I'd rather
hear about other people's experiences have been.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-20 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 20:52 syslog opinion Richard Williams
2003-08-20 7:56 ` Chris Simmonds
-- strict thread matches above, loose matches on Subject: below --
2003-08-19 15:24 Todd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).