Class: Ramaze::Logger::Analogger

Inherits:
Swiftcore::Analogger::Client
  • Object
show all
Includes:
Ramaze::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

Since:

Instance Method Summary (collapse)

Methods included from Ramaze::Logging

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

Constructor Details

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

Create a new instance, parameters default to the traits.

Parameters:

  • name (String) (defaults to: class_trait[:name])

    The name of the logging system (can be anything you like).

  • host (String) (defaults to: class_trait[:host])

    The IP/hostname on which the logging system is running.

  • port (Integer) (defaults to: class_trait[:port])

    The port of the logging system.

Since:

  • 11-08-2009



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

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

Instance Method Details

- (Object) log(tag, *args)

Integration to Logging

Parameters:

  • tag (String)
  • args (Hash)

Since:

  • 11-08-2009



45
46
47
# File 'lib/ramaze/log/analogger.rb', line 45

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