Logger Configs
Adjust # of files and max size to impact disc space
Each umbrella app (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 detailrotate: {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 https://github.com/blockscout/blockscout/blob/master/config/config.exs#L47-L61
Last updated