Logger Configs
Adjust # of files and max size to impact disc space
Last updated
Was this helpful?
Adjust # of files and max size to impact disc space
Last updated
Was this helpful?
Each (indexer, explorer, block_scout_web, ethereum_json_rpc) contains a log rotation config in the prod.exs
file.
config :logger
defines several variables including:
level: (info
, debug
, error
) log level of detail
rotate: {max bytes: 52,428,800
max size in bytes for each file, keep: 19
max number of files to store}
If you are having issues with disc space, change the level, default number of files, and max bytes to consume less space with logs.
Additional log rotation configs for ecto.log
(DB interactions wrapper) and error.log
are located in the common config file