I wanted to change log format from json to hash, and tried below
logger.formatter.jsonize = false
logger.formatter.with_newline = true
Unfortunately this will produce log without newline because as shown in code below, with_newline flag is ignored if jsonize is false
|
return data unless @jsonize |
I'm happy to send PR to change behaviour but technically this will be breaking behaviour change so wanted to first open the issue.
I wanted to change log format from json to hash, and tried below
Unfortunately this will produce log without newline because as shown in code below, with_newline flag is ignored if jsonize is false
ougai/lib/ougai/formatters/for_json.rb
Line 39 in 5584cd0
I'm happy to send PR to change behaviour but technically this will be breaking behaviour change so wanted to first open the issue.