Class: Ramaze::Syslog

Inherits:
Object show all
Includes:
Syslog
Defined in:
lib/ramaze/log/syslog.rb

Overview

Informer for Syslog from rubys standard-library.

Instance Method Summary collapse

Constructor Details

#initializeSyslog

opens syslog



15
16
17
# File 'lib/ramaze/log/syslog.rb', line 15

def initialize
  open unless ::Syslog.opened?
end

Instance Method Details

#inform(tag, *args) ⇒ Object

just sends all messages received to ::Syslog



25
26
27
# File 'lib/ramaze/log/syslog.rb', line 25

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

#inspectObject

Has to call the modules singleton-method.



32
33
34
# File 'lib/ramaze/log/syslog.rb', line 32

def inspect
  ::Syslog.inspect
end