Razor2::Syslog(3)

okay bestie, hi πŸ’– this is the Razor2::Syslog(3) page, straight out of the User Contributed Perl Documentation section. Strap in, because it’s giving syslog-with-extra-sparkle and we’re gonna read it together. 🫢

πŸ’– NAME πŸ’–

Razor2::Syslog β€” syslog support for Razor2. No cap, that’s the whole name vibe. ✨

🌸 SYNOPSIS 🌸

  use Razor2::Syslog;
  my $s=new Razor2::Syslog(Facility=>'local4',Priority=>'debug');
  $s->send('see this in syslog',Priority=>'info');

✨ DESCRIPTION ✨

okay so Razor2::Syslog has been derived from Net::Syslog. Some optimizations were made to Net::Syslog, in particular support for keeping a socket open. The docs that follow are the Net::Syslog docs, and they completely apply to this module. πŸ’…

Net::Syslog implements the intra-host syslog forwarding protocol. It is not intended to replace the Sys::Syslog or Unix::Syslog modules, but instead to provide a method of using syslog when a local syslogd is unavailable or when you don’t want to write syslog messages to the local syslog. That’s the iconic behavior, fr fr. πŸ”₯

The new call sets up default values, any of which can be overridden in the send call. Keys (listed with default values) are:

  • Name β€” defaults to <calling script name>
  • Facility β€” defaults to local5
  • Priority β€” defaults to err
  • SyslogPort β€” defaults to 514
  • SyslogHost β€” defaults to 127.0.0.1

Valid Facilities are: kern, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, authpriv, ftp, local0, local1, local2, local3, local4, local5, local6.

Valid Priorities are: emerg, alert, crit, err, warning, notice, info, debug.

🫢 AUTHOR 🫢

  • Les Howard, les@lesandchris.com
  • Vipul Ved Prakash, mail@vipul.net

πŸ‘€ SEE ALSO πŸ‘€


and that’s the whole page, bestie πŸ’… signing off with source/version perl v5.44.0 and date 2026-10-17, for Razor2::Syslog(3). periodt. πŸŒˆπŸ’–

πŸ“¦ where this page comes from