Sha256: d3494af92d8e2221e79f3b9c1c965a14f5ed9a2d587a55413afda059fdbbfcfc
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'syslog' module Ramaze # Informer for Syslog from rubys standard-library. class Syslog include ::Syslog # opens syslog def initialize open unless ::Syslog.opened? end # alias for default syslog methods so they match ramaze alias error err alias warn warning alias dev debug # just sends all messages received to ::Syslog def inform(tag, *args) self.__send__(tag, *args) end public :error, :warn # Has to call the modules singleton-method. def inspect ::Syslog.inspect end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.2.0 | lib/ramaze/inform/syslog.rb |
ramaze-0.2.1 | lib/ramaze/inform/syslog.rb |