lib/legion/logging/logger.rb in legion-logging-1.1.2 vs lib/legion/logging/logger.rb in legion-logging-1.1.3
- old
+ new
@@ -8,10 +8,10 @@
include Legion::Logging::Methods
include Legion::Logging::Builder
def initialize(level: 'info', log_file: nil, lex: nil, trace: false, extended: false, trace_size: 4, **opts) # rubocop:disable Metrics/ParameterLists
- output(logfile: log_file)
+ set_log(logfile: log_file)
log_level(level)
log_format(lex: lex, extended: extended, **opts)
@color = opts[:color]
@color = true if opts[:color].nil? && log_file.nil?
@trace_enabled = trace