You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for quick response. My end goal was to send log to GCP.
It seems that if you log string with json (like buyan formatter), GCP's log agent (which I think also is fluentd) just ignored my log entry. Problem is I cannot find log format the agent like, so I end up disabling jsonize.
With jsonize=false with default formatter, we at least was able to get log recognized, but multiple log entries were concatenated.
I endup writing custom formatter to make GCP (and datadog which we finally use for consuming log) happy, but if you have any suggestion that is appreciated.
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.
The text was updated successfully, but these errors were encountered: