colorful_log_plus 1.0.8 copy "colorful_log_plus: ^1.0.8" to clipboard
colorful_log_plus: ^1.0.8 copied to clipboard

A Dart package for logging messages with colorful console outputs for enhanced readability and debugging.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:colorful_log_plus/colorful_log_plus.dart';

void main() {
  runApp(const MyApp());

  // Example logs
  debugLog(message: "Hello, World!");
  debugLog(tag: "Auth", message: "User logged in");
  debugLog(
    message: "Warning message",
    color: LogColor.yellow,
    iconType: LogIconType.warning,
  );
  debugLog(
    message: "This is an error",
    color: LogColor.red,
    iconType: LogIconType.error,
    showLogAddress: true,
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text("Colorful Log Example")),
        body: const Center(child: Text("Check debug console for logs!")),
      ),
    );
  }
}
3
likes
160
points
65
downloads

Publisher

verified publishermoeinmoradi.ir

Weekly Downloads

A Dart package for logging messages with colorful console outputs for enhanced readability and debugging.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on colorful_log_plus