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