2048-ai
2048-ai copied to clipboard
Log to file
提供可选项把日志存储到文件中。 Provides an option to store logs in a file.
May be useful for users who want to know what the program does while they sleep. 挂机友好型ai,应该不会占用多少存储空间
Given that the program logs everything by print(), one option would be to simply redirect the output to a log file (you can add logrotate for date-stamped files and tee for simultaneous console output). However, I do understand the desire to have proper logging support and wouldn’t mind having a PR that implements logging using the logging library.