Files
easy_dart_module/lib/base/logger/Logger.dart
2025-01-07 16:50:57 +08:00

27 lines
719 B
Dart

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