-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

having the services that need the syslog plugin depend on virtual/syslog does 
not seem SO bad in the first place. Of course it would be better if InitNG 
would keep those messages in the RAM until it can flush them to syslog, but 
until that we could slightly modify the syslog plugin to be able to chose the 
facility.

How do I get the arguments of an entry like "syslog = MAIL;"? Do I need to 
create something like:

s_entry SYSLOG = { "syslog", STRING, NULL, "Description" };

and use

initng_service_data_type_register(&SYSLOG);

in int module_init(int api_version)?

Do I get the string then in static int syslog_fetch_output(s_event * event) 
via event->data->name?

        Eric


Am Dienstag, 20. Februar 2007 23:54:52 schrieb Ismael Luceno:
> Eric MSP Veith escribió:
> > Hello,
> >
> > I have several programs that exclusively log to stderr, awaiting a
> > logging to like DJB's multilog or splogger to catch that output. With
> > qmail, for example, I've been using DJB's daemontools until now, and want
> > to switch to InitNG.
> >
> > I've seen that InitNG is able to catch such logging output, too, and
> > redirect it to syslog via the syslog plugin. Looking into the code,
> > however, I found that the plugin might be fixed to use the LOCAL1
> > facility.
> >
> > Is this correct? I want my qmail logging stuff (of course) to go into the
> > MAIL facility, so LOCAL1 doesn't seem to be the right destination.
> >
> >     Eric
>
> The problem with the syslog plugin is that it needs to wait for syslogd
> to be able to log something...
>
> I was thinking about writing a logging plugin, I mean one that will take
> care of writting the logs itself, and hold them in memory until / is
> mounted rw.
>
> If someone wants to write it, you're free to do so ;).


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF3GBqMpEdE19y46cRAlo5AJ9f+D2chKzkwgI154cY+341i2MywgCgtBRY
pJnl3ZzlwDM2YbNh/64/VDw=
=WxX+
-----END PGP SIGNATURE-----
-- 
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to