Sha256: 4a2ffceabef5c821809a3b8a083eb70ba60755b05db04634757b3c251b3fc9e4
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
require 'rack/action_logger/emit_adapter/logger_adapter' require 'rack/action_logger/emit_adapter/fluent_adapter' require 'rack/action_logger/emit_adapter/null_adapter' require 'logger' module Rack::ActionLogger class Configuration attr_accessor :emit_adapter attr_accessor :wrap_key attr_accessor :default_tag attr_accessor :tag_prefix attr_accessor :logger def initialize @emit_adapter = EmitAdapter::LoggerAdapter @tag_prefix = 'action' @logger = Logger.new(STDOUT) @logger.progname = 'rack_action_logger' end def default_tag "#{@tag_prefix}.log" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-action_logger-0.1.1 | lib/rack/action_logger/configuration.rb |
rack-action_logger-0.1.0 | lib/rack/action_logger/configuration.rb |