flutter_ytlog 0.0.4
flutter_ytlog: ^0.0.4 copied to clipboard
Log Util for Flutter
A logging utility class that supports color-coded logs in the terminal and enables writing logs to a file for persistent storage.
Usage #
import 'package:flutter_ytlog/flutter_ytlog.dart';
Log.d('TAG', 'Hello World');
Log.i('TAG', 'Hello World');
Log.w('TAG', 'Hello World');
Log.e('TAG', 'Hello World');
Initialize configuration (optional) #
Log.init(enable: true, writeToFile: true);
Get log folder #
Directory logDir = await Log.getLogDir();
Get current log file #
File logFile = await Log.getLogFile();