DEV Community

Cover image for I made a pretty logger for flutter
๐™น๐š’๐š‹๐š›ฤสพฤซ๐š• โšก
๐™น๐š’๐š‹๐š›ฤสพฤซ๐š• โšก

Posted on โ€ข Edited on

3 1

I made a pretty logger for flutter

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

Terminal

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
Enter fullscreen mode Exit fullscreen mode

Import the package.

import 'package:pretty_logger/pretty_PLog.dart';
Enter fullscreen mode Exit fullscreen mode

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());
}
Enter fullscreen mode Exit fullscreen mode

Pretty Logger on pub.dev

Pretty Logger on github

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how theyโ€™re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay