logFile property
String
get
logFile
Gets the path of the log file, if log generation is not prevented via the config
Implementation
String get logFile {
String fileName = "${timestamp.toIso8601String()}.log";
// In windows, it seems that, the file name cannot
// contain `:`
if (Platform.isWindows) {
fileName = fileName.replaceAll(":", "_");
}
return generateLog
? p.join(
Directory.current.path,
".flutter_build_pipe",
"logs",
version,
fileName,
)
: "";
}