Sha256: 8f13b54d83086781490c3f63ad77dd10566226ec3f23db3b9f9dc6ea2baaf573

Contents?: true

Size: 905 Bytes

Versions: 3

Compression:

Stored size: 905 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

require 'swiftcore/Analogger/Client'

module Ramaze

  # Informer for the Swiftcore Analogger logging system.
  #
  # You can find it at http://analogger.swiftcore.org and install with
  # gem install analogger

  class Analogger < ::Swiftcore::Analogger::Client
    include Logging

    # identifier for your application
    trait :name => 'walrus'

    # Host analogger runs on
    trait :host => '127.0.0.1'

    # Port analogger runs on
    trait :port => 6766

    # Create a new instance, parameters default to the traits.

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

    # integration to Logging

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 lib/ramaze/log/analogger.rb
ramaze-0.3.9.1 lib/ramaze/log/analogger.rb
ramaze-0.3.9 lib/ramaze/log/analogger.rb