Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

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() {
  logger.info('hello buddy');
  logger.success('welcome');
  logger.warning('i am a bad man. be careful');
  logger.error('ops. we ran into some trouble');

  logger.black('black');
  logger.red('red');
  logger.white('white');
  logger.cyan('cyan');
  logger.green('green');
  logger.yellow('yellow');

  runapp(const myapp());
}

supported functions

main function

function usage output color
logger.info('hello buddy'); blue
logger.success('welcome'); green
logger.warning('be careful'); yellow
logger.error('ops. trouble') red

additional colors

function usage output color
logger.black('black'); black
logger.red('red'); red
logger.white('white'); white
logger.cyan('cyan'); cyan
logger.green('green'); green
logger.yellow('yellow'); yellow
logger.blue('blue'); blue

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.