How to configure log files written to rel / myproject / log?

I built the Elixir project and released a release with EXRM. When I copied it to the target server and started it, I was glad to know that it was already capturing console output in files like "erlang.log.1" in the log directory. It looks like files grow to 10k and then rotate among five files. Is there a way to customize how large files can be obtained and how many need to be saved?

+4
source share
1 answer

The release is launched using the tool run_erl. You should be able to control how many files you want to save with RUN_ERL_LOG_GENERATIONSand the size of the environment variables RUN_ERL_LOG_MAXSIZE.

+4
source

All Articles