snug_logger

Creator: coderz1093

Last updated:

0 purchases

snug_logger Image
snug_logger Images

Languages

Categories

Add to Cart

Description:

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! πŸ’ΈπŸ˜„

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.