Sha256: cf439cdc4738615d59d376ab933a3384b382c0e7a5fb2d4b721ad79f8ce436d1
Contents?: true
Size: 520 Bytes
Versions: 6
Compression:
Stored size: 520 Bytes
Contents
module Logster class Configuration attr_accessor :current_context, :allow_grouping, :environments attr_writer :subdirectory def initialize # lambda |env,block| @current_context = lambda{ |_, &block| block.call } @environments = [:development, :production] @subdirectory = nil @allow_grouping = false if defined?(::Rails) && ::Rails.env.production? @allow_grouping = true end end def subdirectory @subdirectory || '/logs' end end end
Version data entries
6 entries across 6 versions & 1 rubygems