initFromFile static method
Initialise the logger from the given fileName
.
fileName
has to the the full path to the file.
Implementation
static Future<bool> initFromFile(String fileName) async {
var fileContents = File(fileName).readAsStringSync();
var jsonData = json.decode(fileContents);
return await init(jsonData);
}