LoggerService constructor
Implementation
LoggerService({
required LogLevel level,
bool debugMode = kDebugMode,
}) {
_logger = Logger(
level: level.toLevel(),
printer: PrettyPrinter(methodCount: null),
);
if (debugMode && level == LogLevel.error) {
Logger.addLogListener(_logListener);
}
}