Class: Outlog::JsonLogger
- Inherits:
-
BaseLogger
- Object
- BaseLogger
- Outlog::JsonLogger
- Defined in:
- lib/outlog/json_logger.rb
Instance Method Summary collapse
Methods inherited from BaseLogger
#debug, #error, #fatal, #info, #level, #level=, #level_name, #level_symbol, #warn
Instance Method Details
#output(hash) ⇒ Object
3 4 5 6 |
# File 'lib/outlog/json_logger.rb', line 3 def output hash $stdout.puts hash.to_json $stdout.flush end |