Sha256: 7c4f7232fea86e7105838e5ad3f683fc1f1d2f8655a88783afdf0dc758603dbc
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 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 Informing # 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 Informing def inform(tag, *args) log(tag, args.join("\n")) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.0 | lib/ramaze/inform/analogger.rb |
ramaze-0.3.5 | lib/ramaze/inform/analogger.rb |