Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经构建了我的 Elixir 项目并使用 EXRM 发布了一个版本。当我将它复制到目标服务器并启动它时,我很高兴地发现它已经在日志目录中的“erlang.log.1”等文件中捕获控制台输出。它似乎让文件增长到 10k,然后在五个文件之间旋转。有什么方法可以配置这些文件允许获取多大以及保留多少?
发布是从一个名为run_erl. 您应该能够使用环境变量控制要保留的文件RUN_ERL_LOG_GENERATIONS数量和大小。RUN_ERL_LOG_MAXSIZE
run_erl
RUN_ERL_LOG_GENERATIONS
RUN_ERL_LOG_MAXSIZE