'Tinylog Android, is it possible to clear the file?

I'm using the Tinylog library with the "rolling file" function to write logs to a file. Sometimes I need to clear a file.

Tried to do it with normal Java methods but it breaks the file and makes it hard to read. Is there a way to clear the log file at any point so it doesn't break?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source