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