Closed p5pRT closed 18 years ago
Recently inetutils of Cygwin was updated to include syslogd.
I tried to use Sys::Syslog\, but it failed. This caused by no reflection of updated sys/syslog.h (_PATH_LOG is newly declared). I guess it will be automatically fixed by recompiling Sys::Syslog. This is not a problem.
In that circumstance\, while testing Sys::Syslog\, I came to have some questions about the package.
I think it may be useful that users can specify the unix socket name of syslog in such a environment that doesn't have _PATH_LOG\, but syslogd by unix socket.
I wish Sys::Syslog::setlogsock 'unix' to accept the second argument of $syslog_path like 'stream'\, or I wish to know what reason exists why I can't do it?
About 'stream'\, I also have a question. Pod of Sys::Syslog wrote:
A value of 'stream' will connect to the stream indicated by the pathname provided as the optional second parameter.
But the function Sys::Syslog::connect_stream do at first:
sub connect_stream { my ($errs) = @_; # might want syslog_path to be variable based on syslog.h (if only # it were in there!) $syslog_path = '/dev/conslog';
I think this omit the indicated pathname. Why? Though\, I can't use syslog by 'stream' in Cygwin.
I made a patch to realize my wish. I append it to this report.
The problems were solved for me. By this report I intend only to clear my question. So\, I don't need quick response\, but I am glad if I can get a reply.
[...]
I made a patch to realize my wish. I append it to this report.
The problems were solved for me. By this report I intend only to clear my question. So\, I don't need quick response\, but I am glad if I can get a reply.
Thank you for this patch. It will be included in the next release of Sys::Syslog.
-- Close the world\, txEn eht nepO.
The RT System itself - Status changed from 'new' to 'open'
This patch has been included in Sys::Syslog 0.16\, now on the CPAN.
-- Close the world\, txEn eht nepO.
@rgs - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#35406 (status was 'resolved')
Searchable as RT35406$