Enable/disable file output
void setFileOutput(bool enabled, {String? filePath}) { _enableFileOutput = enabled; _logFilePath = filePath; }