I have log written:
Logger.info(payload|>inspect)
payload comes in binary format and can be rather big.
For debugging purpose I need to it to be written fully, however, I get:
15:04:31.269 [info] <<10, 36, 102, 102, 100, ...>>
Like this, but I shortened the line to fit (is is bigger).
You need to provide truncate: :infinity
option (or bite size you need)
config :logger, :info,
path: Path.join('log', "#{Mix.env}.log"),
level: :info,
truncate: :infinity
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With