/usr/lib/ruby/1.8/ramaze/log/analogger.rb is in libramaze-ruby1.8 2010.06.18-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # 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)
super(tag, args.join("\n"))
end
end
end
end
|