td_logger

Creator: coderz1093

Last updated:

0 purchases

td_logger Image
td_logger Images

Languages

Categories

Add to Cart

Description:

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! ❤️

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.