Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display full log (it gets shortened with "...")

Tags:

elixir

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).

like image 559
Joe Half Face Avatar asked Jul 20 '16 12:07

Joe Half Face


1 Answers

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
like image 102
Joe Half Face Avatar answered Oct 17 '22 17:10

Joe Half Face