Sha256: 63a7d1d8674ad3d92d737a2736cbf53669e2f43c09cd7f32807ea5917e30df0e
Contents?: true
Size: 970 Bytes
Versions: 16
Compression:
Stored size: 970 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 module Logger # 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 end
Version data entries
16 entries across 16 versions & 4 rubygems