logger_beauty

Last updated:

0 purchases

logger_beauty Image
logger_beauty Images
Add to Cart

Description:

logger beauty

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
copied to clipboard
Then run:
$ flutter pub get
copied to clipboard
Import the library in your Dart code:
import 'package:logger_beauty/logger_beauty.dart';
copied to clipboard
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);

copied to clipboard
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());

copied to clipboard
For more examples, check out the example directory.
Issues and Feedback
Please file issues or provide feedback on
our GitHub repository.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.