logger_beauty 1.0.2 copy "logger_beauty: ^1.0.2" to clipboard
logger_beauty: ^1.0.2 copied to clipboard

Transform your debug screens into beautiful, informative workspaces with this Flutter package. Supports DioInterceptor for effortless network request tracking.

logger_beauty #

Bring clarity and visual appeal to your logs with logger_beauty!

This Dart library empowers you with:

  • Color-coded logging: Visually distinguish messages based on their importance with vibrant colors.
  • Timestamps: Easily track the sequence of events with clear timestamps.
  • Customizable levels: Categorize messages using different log levels (debug, info, warning, error, unknown).
  • Optional colors: Highlight specific messages with custom colors for added emphasis.
  • Debug mode awareness: Logs messages only in debug mode, keeping production environments clean.

Key features:

  • Simple API for easy integration into your projects.
  • Works seamlessly with Flutter's debugPrint function.
  • Supports custom formatting for tailored logging experiences.
  • Ideal for debugging, monitoring, and understanding application behavior.

Installation:

Add the library to your pubspec.yaml file:

dependencies:
  logger_beauty: ^1.0.0

Then run:

$ flutter pub get

Import the library in your Dart code:

import 'package:logger_beauty/logger_beauty.dart';

Usage #

import 'package:logger_beauty/logger_beauty.dart';

logDebug('This is a debug message');
logDebug('This is an info message', level: LogLevel.info);
logDebug('This is a warning message', level: LogLevel.warning, color: LogColor.yellow);

Customization:

  • Define your own log levels using the LogLevel enum.
  • Create custom color themes for unique visual styles.

Integration with Dio:

import 'package:logger_beauty/dio_logger_interceptor.dart';

final dio = Dio();
dio.interceptors.add(DioLoggerInterceptor());

For more examples, check out the example directory.

Issues and Feedback Please file issues or provide feedback on our GitHub repository.

4
likes
140
points
121
downloads

Publisher

unverified uploader

Weekly Downloads

Transform your debug screens into beautiful, informative workspaces with this Flutter package. Supports DioInterceptor for effortless network request tracking.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on logger_beauty