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.9.6-java lib/oboe/logger.rb
oboe-2.7.9.6 lib/oboe/logger.rb
oboe-2.7.9.lynx1 lib/oboe/logger.rb
oboe-2.7.8.1-java lib/oboe/logger.rb
oboe-2.7.8.1 lib/oboe/logger.rb
oboe-2.7.7.1-java lib/oboe/logger.rb
oboe-2.7.7.1 lib/oboe/logger.rb
oboe-2.7.6.2-java lib/oboe/logger.rb
oboe-2.7.6.2 lib/oboe/logger.rb
oboe-2.7.5.1-java lib/oboe/logger.rb
oboe-2.7.5.1 lib/oboe/logger.rb
oboe-2.7.5.wolf3 lib/oboe/logger.rb
oboe-2.7.5.wolf3-java lib/oboe/logger.rb
oboe-2.7.5.wolf1 lib/oboe/logger.rb
oboe-2.7.5.wolf1-java lib/oboe/logger.rb
oboe-2.7.4.1-java lib/oboe/logger.rb
oboe-2.7.4.1 lib/oboe/logger.rb
oboe-2.7.3.1-java lib/oboe/logger.rb
oboe-2.7.3.1 lib/oboe/logger.rb
oboe-2.7.2.fuchs2 lib/oboe/logger.rb