Sha256: f8e7eb6919dc05c508cdffb6fb1ba7d0d4cb99d7d1be850de79fad1355715f45
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
module Logster class Configuration attr_accessor :current_context, :allow_grouping, :environments, :application_version, :web_title 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logster-1.0.1 | lib/logster/configuration.rb |
logster-1.0.0.3.pre | lib/logster/configuration.rb |
logster-1.0.0.2.pre | lib/logster/configuration.rb |