Class: Ramaze::Syslog
- Includes:
- Syslog
- Defined in:
- lib/ramaze/log/syslog.rb
Overview
Informer for Syslog from rubys standard-library.
Instance Method Summary collapse
-
#inform(tag, *args) ⇒ Object
just sends all messages received to ::Syslog.
-
#initialize ⇒ Syslog
constructor
opens syslog.
-
#inspect ⇒ Object
Has to call the modules singleton-method.
Constructor Details
#initialize ⇒ Syslog
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 |
#inspect ⇒ Object
Has to call the modules singleton-method.
32 33 34 |
# File 'lib/ramaze/log/syslog.rb', line 32 def inspect ::Syslog.inspect end |