Name : perl-Tie-Syslog
| |
Version : 2.04.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.4.1
| Date : 2023-01-27 18:30:39
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tie-Syslog-2.04.03-lp154.4.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : Tie a filehandle to Syslog.
|
Description :
This module lets you tie a filehandle to Sys::Syslog, providing an easy way to redirect messages to system logs.
$Tie::Syslog::ident = \'DEBUG :: myprocess\'; $Tie::Syslog::logopt = \'pid,ndelay\';
tie *DEBUG, \'Tie::Syslog\', { facility => \'LOG_LOCAL0\', priority => \'LOG_DEBUG\', };
print DEBUG \"This is a debug message - won\'t probably get to system logs.\";
By tying STDOUT and/or STDERR you can easily redirect all messages to system logs, including those of warn() and die().
Tipically, you\'ll want to tie STDOUT with a lower priority than STDERR.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.4/noarch |