Thread View: pl.comp.lang.perl
2 messages
2 total messages
Started by Artur Czechowski
Thu, 23 Oct 1997 11:33
syslogd
Author: Artur Czechowski
Date: Thu, 23 Oct 1997 11:33
Date: Thu, 23 Oct 1997 11:33
13 lines
1451 bytes
1451 bytes
Hej W jaki sposób skłonić perla do zapisywania logów poprzez syslogd? Pierwsze rozwiązanie, jakie mi się nasunęło, to open LOG,"|/usr/bin/logger", tyle tylko, że IMHO nie jest ono zbyt eleganckie. Chciałbym w perlu użyć interface'u opisanego w man 3 syslog (Linux). Czy ktoś mógłby coś podpowiedzieć? Pozdrawiam -- Artur Czechowski <Czesiu@bofh.org.pl> "Ja jestem administratorem tego komputera. Nie mamy pańskich plików I co nam pan teraz zrobi?" /this motto is under GNU license/
Re: syslogd
Author: Piotr Piatkowski
Date: Thu, 23 Oct 1997 15:12
Date: Thu, 23 Oct 1997 15:12
20 lines
1160 bytes
1160 bytes
Artur Czechowski <Czesiu@bofh.org.pl> wrote:
: W jaki sposób skłonić perla do zapisywania logów poprzez syslogd?
perldoc syslog
NAME
Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl
interface to the UNIX syslog(3) calls
SYNOPSIS
use Sys::Syslog;
openlog $ident, $logopt, $facility;
syslog $priority, $format, @args;
$oldmask = setlogmask $mask_priority;
closelog;
--
Piotr Piątkowski, Uczelniane Centrum Informatyki, AGH Krakow, POLAND
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads