Sha256: 12456fe2bd9be1f83df6a22a4761aa81118a234becc83c651243ccd563375c5d

Contents?: true

Size: 477 Bytes

Versions: 3

Compression:

Stored size: 477 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
  class Syslog
    include ::Syslog

    def initialize
      open unless ::Syslog.opened?
    end

    alias error err
    alias warn warning

    def inform(tag, *args)
      self.__send__(tag, *args)
    end

    public :error, :warn

    def inspect
      ::Syslog.inspect
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ramaze-0.1.0 lib/ramaze/inform/syslog.rb
ramaze-0.1.1 lib/ramaze/inform/syslog.rb
ramaze-0.1.2 lib/ramaze/inform/syslog.rb