Source

Branch

1/ @Karyuutensei

@NOTimothyLottes

Where does the restart number come from? I assume this is how many times you exited the code and started again automatically using your batch script?

2/

@Karyuutensei Yeah exactly that. The log file is a fixed size, and memory mapped (+page warming), and lines are a fixed size, so writing a message is lock free (fast just one atomic add, no file or system calls). When it fills it wraps around, and to clear just delete the file (it recreates it

3/

@NOTimothyLottes Thanks for sharing. I’ve never thought of doing logging like this.