dev_loggers_flutter 0.0.1
dev_loggers_flutter: ^0.0.1 copied to clipboard
A colorful logging utility for Flutter that works in PowerShell, VS Code, and Release mode.
example/dev_loggers_flutter_example.dart
import 'package:dev_loggers_flutter/src/dev_logger_base.dart';
void main() {
// 1. Success Log (Green)
// Best for: Successful API calls, Database initialization
DevLog.success("Database connected successfully!");
// 2. Error Log (Red)
// Best for: Catch blocks, Failed validations
DevLog.error("User authentication failed: Invalid credentials");
// 3. Info Log (Cyan)
// Best for: General navigation, App lifecycle tracking
DevLog.info("User navigated to Settings Screen");
// 4. Warning Log (Yellow)
// Best for: Deprecated features, Slow network warnings
DevLog.warn("Network latency is high. Retrying in 3s...");
// 5. Custom Log
// Best for: Specific modules like Payment or Bluetooth
DevLog.log(
"Credit card processed",
tag: "PAYMENT",
color: DevLog.blue,
);
}