Am 2005-03-03 21:33:16, schrieb Ralph Bergmann: > Hallo! > > Ich hab ein Perl Script mit einer zus�tzlichen Log Funktion > ausgestattet, doch der Syslog schreibts nicht in die richtige Log Datei :(
Das ist normal... :-)
> Meine Konfiguration:
>
> syslog.conf:
> kontent.* /var/log/kontent.log
^^^^^^^
Hier solltest du eins der erlaubten KEYWORDS nehmen wie
__( manpage 'syslog.conf' )___________________________________________
/
| Formatiere syslog.conf(5) neu, bitte warten...
| SYSLOG.CONF(5) Linux System Administration SYSLOG.CONF(5)
|
| The facility is one of the following keywords: auth, auth�
| priv, cron, daemon, ftp, kern, lpr, mail, mark, news,
| security (same as auth), syslog, user, uucp and local0
| through local7. The keyword security should not be used
| anymore and mark is only for internal use and therefore
| should not be used in applications. Anyway, you may want
|
| Version 1.3 1 January 1998 SYSLOG.CONF(5)
\______________________________________________________________________
> Die syslog.conf ist sonst noch im Originalzustand, den Eintrag hab ich
> hinter den ganzen "First some standard logfiles. Log by facility"
> geschrieben, also noch vor "Logging for the mail system".
siehe 'man 5 syslog.conf'
> Im Perl Script steht dann folgendes:
>
> use Sys::Syslog qw/:DEFAULT setlogsock/;
> setlogsock('unix');
> openlog('kontent', 'pid,cons', 'kontent');
> syslog('info', 'blabla');
> closelog();
>
> Nun m�chte ich, dass alles nach /var/log/kontent.log kommt, doch es
> landet nur in /var/log/messages und /var/log/syslog.
>
> Was hab ich falsch gemacht?
Du solltest ein local(0-7) verwenden
> Danke! Ralph
Greetings
Michelle
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature

