Sha256: fa9c8728327cf006e4be96ab4e9793759b0aea12238e14546d89d793f7225c68

Contents?: true

Size: 367 Bytes

Versions: 16

Compression:

Stored size: 367 Bytes

Contents

module BigBrother
  class Logger
    module Level
      DEBUG = 0
      INFO = 1
    end

    attr_accessor :level

    def initialize
      @level = Level::INFO
    end

    def write(message)
      info(message)
    end

    def info(message)
      EM.info(message)
    end

    def debug(message)
      EM.debug(message) if level == Level::DEBUG
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
big_brother-0.8.8.1 lib/big_brother/logger.rb
big_brother-0.8.8 lib/big_brother/logger.rb
big_brother-0.8.7 lib/big_brother/logger.rb
big_brother-0.6.8 lib/big_brother/logger.rb
big_brother-0.6.7 lib/big_brother/logger.rb
big_brother-0.6.6 lib/big_brother/logger.rb
big_brother-0.6.5 lib/big_brother/logger.rb
big_brother-0.6.4 lib/big_brother/logger.rb
big_brother-0.6.3 lib/big_brother/logger.rb
big_brother-0.6.2 lib/big_brother/logger.rb
big_brother-0.6.1 lib/big_brother/logger.rb
big_brother-0.6.0 lib/big_brother/logger.rb
big_brother-0.5.0 lib/big_brother/logger.rb
big_brother-0.4.1 lib/big_brother/logger.rb
big_brother-0.4.0 lib/big_brother/logger.rb
big_brother-0.3.1 lib/big_brother/logger.rb