pretty_logger 1.0.0 copy "pretty_logger: ^1.0.0" to clipboard
pretty_logger: ^1.0.0 copied to clipboard

A flutter package that developers have pretty logs instead just printing everything like a newbie.

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_logger.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());
}

Supported functions #

Main function

Function usage Output Color
PLog.info('Hello buddy'); Blue
PLog.success('Welcome'); Green
PLog.warning('Be careful'); Yellow
PLog.error('Ops. trouble') Red

Additional colors

Function usage Output Color
PLog.black('black'); Black
PLog.red('red'); Red
PLog.white('white'); White
PLog.cyan('cyan'); Cyan
PLog.green('green'); Green
PLog.yellow('yellow'); Yellow
PLog.blue('Blue'); Blue
7
likes
160
pub points
73%
popularity

Publisher

verified publishermorocoder.com

A flutter package that developers have pretty logs instead just printing everything like a newbie.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pretty_logger