Sha256: 9189476862496107b9b55bfe736eda0af9eec5f59dd5cd4a97d711941d1c32a1

Contents?: true

Size: 755 Bytes

Versions: 49

Compression:

Stored size: 755 Bytes

Contents

# Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.

require 'logger'

module Oboe
  class << self
    attr_accessor :logger
  end

  class Logger
    # Fatal message
    def fatal(string, exception = nil)
      Oboe.logger.fatal(string) if Oboe.logger
    end

    # Error message
    def error(msg, exception = nil)
      Oboe.logger.error(string) if Oboe.logger
    end

    # Warn message
    def warn(msg, exception = nil)
      Oboe.logger.warn(string) if Oboe.logger
    end

    # Info message
    def info(msg, exception = nil)
      Oboe.logger.info(string) if Oboe.logger
    end

    # Debug message
    def debug(msg, exception = nil)
      Oboe.logger.debug(string) if Oboe.logger
    end

  end
end

Oboe.logger = Logger.new(STDERR)

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
oboe-2.7.19-java lib/oboe/logger.rb
oboe-2.7.19 lib/oboe/logger.rb
oboe-2.7.18-java lib/oboe/logger.rb
oboe-2.7.18 lib/oboe/logger.rb
oboe-2.7.17.1-java lib/oboe/logger.rb
oboe-2.7.17.1 lib/oboe/logger.rb
oboe-2.7.16.1 lib/oboe/logger.rb
oboe-2.7.16.1-java lib/oboe/logger.rb
oboe-2.7.15.1-java lib/oboe/logger.rb
oboe-2.7.15.1 lib/oboe/logger.rb
oboe-2.7.14.1-java lib/oboe/logger.rb
oboe-2.7.14.1 lib/oboe/logger.rb
oboe-2.7.13.3-java lib/oboe/logger.rb
oboe-2.7.13.3 lib/oboe/logger.rb
oboe-2.7.12.1-java lib/oboe/logger.rb
oboe-2.7.12.1 lib/oboe/logger.rb
oboe-2.7.11.1 lib/oboe/logger.rb
oboe-2.7.11.1-java lib/oboe/logger.rb
oboe-2.7.10.1-java lib/oboe/logger.rb
oboe-2.7.10.1 lib/oboe/logger.rb