lib/tobox/cli.rb in tobox-0.1.0 vs lib/tobox/cli.rb in tobox-0.1.1
- old
+ new
@@ -15,15 +15,15 @@
@options = parse(args)
end
def run
options = @options
- logger = Logger.new($stderr)
config = Configuration.new do |c|
- c.logger(logger)
c.instance_eval(File.read(options.fetch(:config_file)), options.fetch(:config_file), 1)
end
+
+ logger = config.default_logger
# boot
options.fetch(:require).each(&method(:require))
# signals