lib/legion/logging.rb in legion-logging-1.1.0 vs lib/legion/logging.rb in legion-logging-1.1.1
- old
+ new
@@ -15,12 +15,12 @@
def level
@log.level
end
- def setup(options = {})
+ def setup(level: 'info', **options)
output(options)
- log_level(options[:level])
+ log_level(level)
log_format(options)
@color = options[:color]
@color = true if options[:color].nil? && options[:log_file].nil?
end
end