initLoggy static method

void initLoggy({
  1. LoggyPrinter logPrinter = const DefaultPrinter(),
  2. LogOptions logOptions = defaultLevel,
  3. List<LoggyFilter> filters = const [],
  4. bool hierarchicalLogging = false,
})

Implementation

static void initLoggy({
  LoggyPrinter logPrinter = const DefaultPrinter(),
  LogOptions logOptions = defaultLevel,
  List<LoggyFilter> filters = const [],
  bool hierarchicalLogging = false,
}) {
  Loggy._root.level = logOptions;
  Loggy._root.filters = filters;
  Loggy._root.printer = logPrinter;
  hierarchicalLoggingEnabled = hierarchicalLogging;
}