From 5bb0ff4a564d47b52adb8ba677b743c7942a81bd Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Sun, 28 Apr 2019 19:02:04 +1000 Subject: [PATCH] feat: ensure all of the logging goes to stdout --- pact_broker/logger.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pact_broker/logger.rb b/pact_broker/logger.rb index e467734e..4006ab90 100644 --- a/pact_broker/logger.rb +++ b/pact_broker/logger.rb @@ -7,5 +7,10 @@ Logger::WARN end -$logger = ::Logger.new($stdout) -$logger.level = log_level +SemanticLogger.add_appender(io: $stdout) +SemanticLogger.default_level = log_level +$logger = SemanticLogger['root'] + +PADRINO_LOGGER = { + ENV.fetch('RACK_ENV').to_sym => { log_level: :error, stream: :stdout, format_datetime: '%Y-%m-%dT%H:%M:%S.000%:z' } +}