Sha256: 8f095ba8489dad9d791ed9d22122f702389b088eb882a8b27528d01d725c91e5
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logster-0.8.4.pre | lib/logster/configuration.rb |