initFromFile static method

Future<bool> initFromFile(
  1. String fileName
)

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);
}