简体   繁体   中英

How do you configure the log files written to rel/myproject/log?

I've built my Elixir project and made a release with EXRM. When I copied it to a target server and started it up, I was happy to find that it was already capturing console output in files like "erlang.log.1" in a log directory. It appears to let the files grow to 10k and then rotates among five files. Is there any way to configure how large those files are allowed to get and how many to keep?

The release is started with a tool called run_erl . You should be able to control how many files you want to keep with RUN_ERL_LOG_GENERATIONS and the size with RUN_ERL_LOG_MAXSIZE environment variables.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM