πΉπππΔΚΎΔ«π β‘
Posted on November 20, 2021
A flutter package that developers have pretty logs instead just printing everything like a newbie.
Features
Makes it easy to log to console without using print in a colorful way, with multiple colors, and it works only in debug mode, makeing it perfect for pros.
Getting started
Installing
Add the following to your pubspec.yaml file:
dependencies:
pretty_logger: any
Import the package.
import 'package:pretty_logger/pretty_PLog.dart';
Usage
void main() {
PLog.info('Hello buddy');
PLog.success('Welcome');
PLog.warning('I am a bad man. Be careful');
PLog.error('Ops. We ran into some trouble');
PLog.black('black');
PLog.red('red');
PLog.white('white');
PLog.cyan('cyan');
PLog.green('green');
PLog.yellow('yellow');
runApp(const MyApp());
}
π πͺ π
π©
πΉπππΔΚΎΔ«π β‘
Posted on November 20, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.