Log rotation in std.logger.filelogger

Vitalii yvitaliy1980 at yandex.ru
Wed May 17 21:11:41 UTC 2023


Hello!

Please tell me how to enable log rotation in 
std.logger.filelogger? Without log rotation, it seems that the 
std.logger.filelogger is useless, because it will quickly take up 
all the free space on the hard drive.

In theory, you can close the file in the logger, rename it, etc., 
open a new one, but the manual says that this will lead to 
undefined behavior. So how do you rotate the log?

Best regards,
Vitalii


More information about the Digitalmars-d-learn mailing list