Class: Ramaze::Analogger

Inherits:
Swiftcore::Analogger::Client
  • Object
show all
Includes:
Logging
Defined in:
lib/ramaze/log/analogger.rb

Overview

Informer for the Swiftcore Analogger logging system.

You can find it at analogger.swiftcore.org and install with gem install analogger

Instance Method Summary collapse

Methods included from Logging

#debug, #debug?, #dev, #error, #info, #shutdown, #tag_log, #warn

Constructor Details

#initialize(name = class_trait[:name], host = class_trait[:host], port = class_trait[:port]) ⇒ Analogger

Create a new instance, parameters default to the traits.



27
28
29
# File 'lib/ramaze/log/analogger.rb', line 27

def initialize(name = class_trait[:name], host = class_trait[:host], port = class_trait[:port])
  super
end

Instance Method Details

#log(tag, *args) ⇒ Object

integration to Logging



33
34
35
# File 'lib/ramaze/log/analogger.rb', line 33

def log(tag, *args)
  log(tag, args.join("\n"))
end