lib/netsoul/logging.rb in netsoul-2.3.7 vs lib/netsoul/logging.rb in netsoul-2.3.8
- old
+ new
@@ -9,10 +9,11 @@
class << self
attr_writer :logger
end
def self.logger
- @logger ||= ::Logger.new(STDERR).tap do |logger|
+ @logger ||= ::Logger.new(STDOUT).tap do |logger|
+ $stdout.sync = true
logger.level = Logger::INFO
logger.formatter = proc do |severity, datetime, _progname, msg|
"#{severity} [#{datetime.strftime('%Y-%m-%d %H:%M:%S.%L'.freeze)}] #{msg}\n"
end
end