open static method
Opens the log file at path for appending, creating it and its folders when they do not exist
Implementation
static (LogFileReporter?, String?) open(String path) {
try {
File file = File(path);
file.parent.createSync(recursive: true);
return (LogFileReporter._(file.openSync(mode: FileMode.append)), null);
} on FileSystemException catch (e) {
return (null, "${e.message}: ${e.path ?? path}");
}
}