clearFile static method
Erases the content of the log file.
Implementation
static Future<void> clearFile() async {
await _debugFile.writeAsString("");
print(
"[LogLogger]: The log file $_debugFileName was cleared and it is now empty.",
);
}