lib/aws/cfn/dsl/mixins/options.rb in aws-cfn-dsl-0.8.1 vs lib/aws/cfn/dsl/mixins/options.rb in aws-cfn-dsl-0.8.2
- old
+ new
@@ -104,16 +104,20 @@
scheme = lcs.scheme
scheme['trace'] = "\e[38;5;33m"
scheme['fatal'] = "\e[38;5;89m"
scheme['todo'] = "\e[38;5;55m"
lcs.scheme scheme
+ @config[:log_level] ||= :info
@config[:log_opts] = lambda{|mlll| {
- :pattern => "%#{mlll}l: %m %C\n",
+ :pattern => "%#{mlll}l: %m %g\n",
:date_pattern => '%Y-%m-%d %H:%M:%S',
- :color_scheme => 'compiler'
+ :color_scheme => 'compiler',
+ :trace => true,
+ # [2014-06-30 Christo] DO NOT do this ... it needs to be a FixNum!!!!
+ # If you want to do ::Logging.init first then fine ... go ahead :)
+ # :level => @config[:log_level],
}
}
- @config[:log_level] ||= :info
@logger = getLogger(@config)
end
def self.included(includer)