Subject: | Do not use setlogsock with Sys::Syslog >= 0.15 |
Hi Paul,
In the Sys::Syslog documentation it is written:
---
Now that the "native" mechanism is supported by Sys::Syslog and selected
by default, the use of the setlogsock() function is discouraged because
other mechanisms are less portable across operating systems. Authors of
modules and programs that use this function, especially its cargo-cult
form setlogsock("unix"), are advised to remove any occurence of it
unless they specifically want to use a given mechanism (like TCP or UDP
to connect to a remote host).
---
Note that Sys::Syslog supports the "native" mechanism since version 0.15.
Could you therefore remove the setlogsock call unless Sys::Syslog is
less than 0.15 and unless the user explicitely asks for a special
logsock via syslog_logsock ?
Thanks and Cheers
David Schweikert