Skip to content

Commit

Permalink
Adds flush to json (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyt committed Feb 15, 2019
1 parent 364b86d commit 97097ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/outlog/json_logger.rb
@@ -1,7 +1,8 @@
module Outlog
class JsonLogger < BaseLogger
def output hash
puts hash.to_json
$stdout.puts hash.to_json
$stdout.flush
end
end
end

0 comments on commit 97097ca

Please sign in to comment.