0 purchases
td logger
TD Logger #
TD Logger is a simple logger for Flutter.
Usage #
enum LogType { short, full }
copied to clipboard
Logger.name = 'ThongDN'; // Set name of Logger (default: TDLogger)
Logger.log('TD Logger -> Log', type: LogType.short);
Logger.info('TD Logger -> Info', type: LogType.short);
Logger.warning('TD Logger -> Warning', type: LogType.short);
Logger.debug('TD Logger -> Debug');
Logger.error('TD Logger -> Error');
copied to clipboard
Instead of a string message, you can also pass other objects (like List, Map or Set).
Note: This only print log in debug mode
Output #
flutter: ThongDN: TD Logger -> Log
flutter: ℹ️ ThongDN: TD Logger -> Info
flutter: ⚠️ ThongDN: TD Logger -> Warning
flutter: ┌------ ThongDN: 🐞 2022-03-16 17:00:37.324065 ------
flutter: │#0 _MyHomePageState._testLog
flutter: ├------------------------ Log ------------------------
flutter: │TD Logger -> Debug
flutter: └----------------------------------------------------
flutter: ┌------ ThongDN: ⛔ 2022-03-03 17:43:39.434566 ------
flutter: │#0 _MyHomePageState._testLog
flutter: ├----------------------- Log ------------------------
flutter: │TD Logger -> Error
flutter: └----------------------------------------------------
copied to clipboard
Author #
TD Logger is developed by Thong Dang. You can contact me at [email protected]
If you like my project, you can support me or star (like) for it.
Thank you! ❤️
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.