Background
In one of our projects a client of ours complained that the logs he is getting are being capped at 2000 characters.
This client is gettign his logs via a tool called Splunk and perhaps some other systems I am not aware of.
Instead of capping the messages at 2K characters, I need to cap them at 8K.
Config
To me this is strange, because we specifically truncate the log to :infinity
, as our config shows:
use Mix.Config
config :logger,
level: :info,
backends: [:console],
utc_log: true,
sync_threshold: 100,
truncate: :infinity
if Mix.env() != :prod do
config :logger,
level: :debug
end
config :logger, :console,
format: "$time $metadata[$level] $message\n",
metadata: [
:module,
:line,
:function,
:trace,
:perf,
:duration,
:namespace
]
Furthermore, I didn’t find any specific Logger limits documented:
https://hexdocs.pm/logger/Logger.html
Question
- Does the Logger have some internal limit that cuts messages down to 2000 characters? If so, how can I change it?