Spice up your logs with Snug Logger! 🎉🛋️
Click here to try it out! 🚀✨
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.
- 🛋️ 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.
- 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!
- Log various levels:
debug
,info
,error
, andproduction
. Each has its own role, keeping your logs purposeful and organized.
- 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.
- Logs follow a clear, structured template, blending fun with functionality.
- Consistent formatting across all levels for a polished, professional look.
Getting started with Snug Logger is a breeze! Add it to your pubspec.yaml
file:
dependencies:
snug_logger: ^1.0.10
Then, fetch the package:
flutter pub get
import 'package:snug_logger/snug_logger.dart';
Bring some flair to your logs with just a few lines of code!
snugLog(
"This is an info message, filled with dad-joke-level wisdom and charm! 👨👧👦🤣",
logType: LogType.info
);
snugLog(
"Debugging with precision! No clowns involved, just pure detective work. 🤡🔍",
logType: LogType.debug
);
snugLog(
"Oops! Something went wrong, but don't worry, I've got the toolkit ready! 🦸♂️🔧",
logType: LogType.error,
stackTrace: StackTrace.current
);
snugLog(
"Production-ready logs: polished, professional, and prepared for the spotlight! 🎭😄",
logType: LogType.production
);
Integrate SnugDioLogger for detailed network request logs:
_dio.interceptors.add(
SnugDioLogger(
requestHeaders: true,
requestData: true,
responseHeaders: true,
responseData: true,
logPrint: (object) => debugPrint(object.toString()),
),
);
You control exactly what gets logged—headers, request data, or full responses. 🕵️♂️
Got ideas or feedback? We’re all ears! Here’s how to get involved:
Let’s make logging a delightful part of coding! 🚀✨
Why did the programmer go broke? Because they used up all their cache! 💸😄