2048-ai icon indicating copy to clipboard operation
2048-ai copied to clipboard

Log to file

Open z0z0r4 opened this issue 2 years ago • 1 comments

提供可选项把日志存储到文件中。 Provides an option to store logs in a file.

z0z0r4 avatar Aug 11 '22 12:08 z0z0r4

May be useful for users who want to know what the program does while they sleep. 挂机友好型ai,应该不会占用多少存储空间

z0z0r4 avatar Aug 11 '22 12:08 z0z0r4

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.

nneonneo avatar Dec 21 '22 01:12 nneonneo