initLoggy static method
void
initLoggy({
- LoggyPrinter logPrinter = const DefaultPrinter(),
- LogOptions logOptions = defaultLevel,
- List<
LoggyFilter> filters = const [], - 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;
}