BSD Ports

sysutils/ruby-syslog-logger 1.6.8 NetBSD

Improved Logger replacement that logs to syslog

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
sysutils, ruby
Package size
18.0 KiB, 50.0 KiB installed

Description

Logger::Syslog is a Logger replacement that logs to syslog. It is almost drop-in with a few caveats. You can add Logger::Syslog to your Rails production environment to aggregate logs between multiple machines.

NOTE! You can only set the Logger::Syslog program name and facility when you initialize Logger::Syslog for the first time. This is a limitation of the way Logger::Syslog uses syslog (and in some ways, a limitation of the way syslog(3) works). Attempts to change Logger::Syslog's program name or facility after the first initialization will be ignored.

This particular Logger::Syslog improves the original by correctly mapping Rails log severities to the Syslog counterparts. It also adds the ability to select a syslog facility other than "user."

Install

Binary package:

pkgin install ruby33-syslog-logger

From pkgsrc:

cd /usr/pkgsrc/sysutils/ruby-syslog-logger && make install clean

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-syslog-logger-1.6.8, ruby40-syslog-logger-1.6.8