正如这个答案所建议的那样,我激活了.plist
我生成的文件的日志记录。
<key>StandardOutPath</key>
<string>/path/to/logfile.log</string>
<key>StandardErrorPath</key>
<string>/path/to/another_logfile.log</string>
Run Code Online (Sandbox Code Playgroud)
但是,日志文件正在慢慢变大,我想知道是否有办法限制日志在.plist
文件中的大小?