flutter_ytlog 0.0.4 copy "flutter_ytlog: ^0.0.4" to clipboard
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();
0
likes
120
points
235
downloads

Publisher

unverified uploader

Weekly Downloads

Log Util for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl, path_provider

More

Packages that depend on flutter_ytlog