Files
easy_dart_module/lib/base/logger/Logger.dart
2025-01-02 10:08:03 +08:00

22 lines
431 B
Dart

abstract class Logger {
static late Logger _logger;
static Logger getInstance() {
return _logger;
}
static void setInstance(Logger logger) {
_logger = logger;
}
void info(String msg, {String tag});
void warning(String msg, {String tag});
void error(String msg, {String tag});
}
class LoggerConfig {
String host;
String serviceName;
LoggerConfig({required this.host, required this.serviceName});
}