Sha256: a10319289ec2ab1981cec8c9f04fcb33532368f84733de220b9a862dd6d7c7e3

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

require 'jersey/logging/base_logger'
require 'jersey/logging/logfmt_logger'
require 'jersey/logging/json_logger'
require 'jersey/logging/mixins'

module Jersey
  class Logger < LogfmtLogger
    include Logging::LogTime
    include Logging::LogError
  end

  class JsonLogger < JSONLogger
    include Logging::LogTime
    include Logging::LogError
  end

  module LoggingSingleton
    attr_writer :logger

    def logger
      @logger ||= Jersey::Logger.new
    end

    def log(loggable = {})
      logger.log(loggable)
    end
  end

  extend LoggingSingleton
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jersey-0.2.0 lib/jersey/log.rb
jersey-0.1.0 lib/jersey/log.rb