From 84c0e44b875aa5853761fae6abfa59c560910189 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 11 Jun 2021 19:48:51 +0700 Subject: [PATCH] Task: Add logger for log debug for function to replace console log --- lib/src/xlog/xlog.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/xlog/xlog.dart b/lib/src/xlog/xlog.dart index 747cdf0..aa60516 100644 --- a/lib/src/xlog/xlog.dart +++ b/lib/src/xlog/xlog.dart @@ -8,6 +8,10 @@ class XLog { logger.success(data, args); } + static void log(String prefix, dynamic data, [List? args]) { + logger.show(XLogType.DEBUG, prefix, data, args); + } + static void info(dynamic data, [List? args]) { logger.info(data, args); }