Sha256: 357076b930eb9e18f0eda454ef73307b4fb704f2df1a82ba557783df19f461bc

Contents?: true

Size: 685 Bytes

Versions: 5

Compression:

Stored size: 685 Bytes

Contents

# Plugin logger that will delegate to the OSGI LogService
module Killbill
  module Plugin
    class KillbillLogger
      def initialize(delegate)
        @logger = delegate
      end

      def debug(msg)
        @logger.log(4, msg)
      end

      def info(msg)
        @logger.log(3, msg)
      end

      def warn(msg)
        @logger.log(2, msg)
      end

      def error(msg)
        @logger.log(1, msg)
      end

      alias_method :fatal, :error

      # XXX TODO
      def debug?
        false
      end

      def info?
        true
      end

      def warn?
        true
      end

      alias_method :error?, :warn?
      alias_method :fatal?, :error?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
killbill-1.0.15 lib/killbill/killbill_logger.rb
killbill-1.0.14 lib/killbill/killbill_logger.rb
killbill-1.0.13 lib/killbill/killbill_logger.rb
killbill-1.0.12 lib/killbill/killbill_logger.rb
killbill-1.0.11 lib/killbill/killbill_logger.rb