Sha256: e895a4c95803611c02a0b1ac333c281fa16c651842ffdb2c9818ae9db85d5ce6

Contents?: true

Size: 328 Bytes

Versions: 15

Compression:

Stored size: 328 Bytes

Contents

require 'tamashii/agent'

module Tamashii
  module Agent
    module Common
      module Loggable
        def logger
          Agent.logger.progname = self.progname
          Agent.logger
        end

        def progname
          @progname ||= ("%-10s" % self.class.to_s.split(":")[-1])
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tamashii-agent-0.3.1 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.3.0 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.8 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.7 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.6 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.5 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.4 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.3 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.1 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.2.0 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.1.11 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.1.10 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.1.9 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.1.8 lib/tamashii/agent/common/loggable.rb
tamashii-agent-0.1.7 lib/tamashii/agent/common/loggable.rb