Tips: Clean up serviio.log to the size of zero KiB
My D:\Program Files\Serviio\log\serviio.log file size is 4.5MiB, I want to clean up this file. I do these steps:
- stop Serviio server in Serviio Console;
- clean up the content of serviio.log and save it;
- restart Serviio server in Serviio Console;
- then the serviio.log file size become 4.5Mib again, the serviio.log file content is full of "NUL" in Notepad2.exe text editor like this(which displayed in Notepad2.exe text editor)
- Code:
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL NUL
Then i want to delete the serviio.log directly, but it shows:
I use stop/restart Serviio Services instead of Serviio Server and do the four steps above, successful.
It was a problem for me at first, then I found the solution, share it with all friends.