snug_logger 1.0.10 copy "snug_logger: ^1.0.10" to clipboard
snug_logger: ^1.0.10 copied to clipboard

Snug Logger - Cozy, Fun, Powerful! Elevate your coding with simplicity and a touch of fun. Logging made delightful.

Snug Logger ๐Ÿ›‹๏ธ #

Snug Logger Feature Graphic

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

Then, fetch the package:

flutter pub get

Quick Start: #

Import the Package: #

import 'package:snug_logger/snug_logger.dart';

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
);

Example: Debug Log

snugLog(
  "Debugging with precision! No clowns involved, just pure detective work. ๐Ÿคก๐Ÿ”", 
  logType: LogType.debug
);

Example: Error Log

snugLog(
  "Oops! Something went wrong, but don't worry, I've got the toolkit ready! ๐Ÿฆธโ€โ™‚๏ธ๐Ÿ”ง", 
  logType: LogType.error,
  stackTrace: StackTrace.current
);

Example: Production Log

snugLog(
  "Production-ready logs: polished, professional, and prepared for the spotlight! ๐ŸŽญ๐Ÿ˜„", 
  logType: LogType.production
);

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()),
  ),
);

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:

Letโ€™s make logging a delightful part of coding! ๐Ÿš€โœจ


Why did the programmer go broke? Because they used up all their cache! ๐Ÿ’ธ๐Ÿ˜„

9
likes
160
pub points
66%
popularity

Publisher

verified publisherwebmobtech.com

Snug Logger - Cozy, Fun, Powerful! Elevate your coding with simplicity and a touch of fun. Logging made delightful.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on snug_logger