colorize_logger

Creator: coderz1093

Last updated:

0 purchases

colorize_logger Image
colorize_logger Images

Languages

Categories

Add to Cart

Description:

colorize logger

colorize_logger #
a colorize logger for flutter, you can also customize。
中文说明 #
一个可以定制的flutter日志系统,debug模式下会打印日志,release模式关闭日志
screenshots #

how to use ? #
if (Logger.isReleaseMode()) {
/// use file
Directory directory = await getApplicationDocumentsDirectory();
final currentDate = DateTime.now();
final fileName =
'${currentDate.year}-${currentDate.month}-${currentDate.day}-logs.txt';
Logger.client = FileLoggerClient(filePath: '${directory.path}/$fileName');

/// use sentry
// await SentryFlutter.init(
// (options) {
// options.dsn = 'https://[email protected]/add-your-dsn-here';
// },
// );
// Logger.client = SentryLoggerClient();
} else {
/// debug
Logger.client = ColorizeLoggerClient();
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.