Skip to content

Commit

Permalink
feat: ensure all of the logging goes to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 28, 2019
1 parent fcc431c commit 5bb0ff4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pact_broker/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
}

0 comments on commit 5bb0ff4

Please sign in to comment.