0 purchases
snug logger
Snug Logger ποΈ #
Spice up your logs with Snug Logger! πποΈ
Click here to try it out! πβ¨
Welcome to Snug Logger! π #
Wave goodbye to mundane, dull logs and embrace the colorful, emoji-filled world of Snug Logger! ππ»β¨ With us, debugging is no longer a chore but a lively, fun-filled experience.
Why Choose Snug Logger? #
ποΈ Cozy to Use: Vibrant and clear log messages that are as comforting as your favorite hoodie.
π¨ Color-Coded Clarity: Instantly spot log levels with our dynamic colors and emojis.
π Professional Structure: Playful yet organized, ensuring your logs are both engaging and easy to navigate.
Features: #
1. Colorful Logging: #
Brighten up your log readability with dynamic colors for different log levels.
Emojis bring your logs to life: π for debug, βΉοΈ for info, π¨ for error, and more!
2. Versatile Log Levels: #
Log various levels: debug, info, error, and production. Each has its own role, keeping your logs purposeful and organized.
3. SnugDioLogger for Network Requests: #
Enhance your network request logs with SnugDioLogger for detailed insights into every request and response.
Tailor what you logβheaders, request data, and response contentβwith fine-tuned control.
4. Structured Log Formatting: #
Logs follow a clear, structured template, blending fun with functionality.
Consistent formatting across all levels for a polished, professional look.
Installation: #
Getting started with Snug Logger is a breeze! Add it to your pubspec.yaml file:
dependencies:
snug_logger: ^1.0.10
copied to clipboard
Then, fetch the package:
flutter pub get
copied to clipboard
Quick Start: #
Import the Package: #
import 'package:snug_logger/snug_logger.dart';
copied to clipboard
Basic Usage: #
Bring some flair to your logs with just a few lines of code!
Example: Info Log
snugLog(
"This is an info message, filled with dad-joke-level wisdom and charm! π¨βπ§βπ¦π€£",
logType: LogType.info
);
copied to clipboard
Example: Debug Log
snugLog(
"Debugging with precision! No clowns involved, just pure detective work. π€‘π",
logType: LogType.debug
);
copied to clipboard
Example: Error Log
snugLog(
"Oops! Something went wrong, but don't worry, I've got the toolkit ready! π¦ΈββοΈπ§",
logType: LogType.error,
stackTrace: StackTrace.current
);
copied to clipboard
Example: Production Log
snugLog(
"Production-ready logs: polished, professional, and prepared for the spotlight! ππ",
logType: LogType.production
);
copied to clipboard
Network Logging with SnugDioLogger: #
Integrate SnugDioLogger for detailed network request logs:
_dio.interceptors.add(
SnugDioLogger(
requestHeaders: true,
requestData: true,
responseHeaders: true,
responseData: true,
logPrint: (object) => debugPrint(object.toString()),
),
);
copied to clipboard
You control exactly what gets loggedβheaders, request data, or full responses. π΅οΈββοΈ
Join the Snug Squad! #
Got ideas or feedback? Weβre all ears! Hereβs how to get involved:
π¬ Open an Issue
π₯ Submit a Pull Request
Letβs make logging a delightful part of coding! πβ¨
Why did the programmer go broke? Because they used up all their cache! πΈπ
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.