logger_master 1.0.1+1
logger_master: ^1.0.1+1 copied to clipboard
Best logger for flutter
🚀 Features
✅ Simple API – just call object.info(), object.error(), etc.
✅ Clickable logs – one click takes you to the exact file & line in Android Studio / IntelliJ.
✅ Colored logs (info, warning, error, debug.) for better readability.
✅ Works with any Dart object.
✅ Zero external dependencies.
1: Type your object like [String] ...
2: Your object [Hello World]
3: Exact file line logger
4: Number of line logger
📥 Installation
Add to your pubspec.yaml:
dependencies:
logger_master: ^1.0.0+1
Then run:
flutter pub get
🛠️ Usage
import 'package:logger_master/logger_master.dart';
void main() {
ExampleModel exampleModel = ExampleModel(id: 1, name: "Example");
// Log info
"Hello World".logInfo();
// Log with a custom tag
exampleModel.logWarning();
exampleModel.name.logError();
// Log an error
123.logDebug();
}
🎨 Colored Output Method Example Usage Output Color
logInfo() "Hello".logInfo() 🟦 Blue
logDebug() "Debug".logDebug() 🟩 Green
logWarning() "Careful".logWarning() 🟨 Yellow
logError() "Oops".logError() 🟥 Red
🖱️ Clickable Logs
When you run your app in Android Studio or IntelliJ, logs printed by logger look like this:
[String] Hello World [file://package:example/main.dart:10]
👉 Clicking (main.dart:10) takes you directly to that file and line in your code.
This makes debugging faster and smoother – no more searching for where a log was printed!
⚙️ Customization
You can enable/disable colors:
object.info(colored: false);
Or add tags:
object.debug('NETWORK');
📌 Roadmap
JSON pretty-printing
File logging support
Flutter-only extension (snackbar + toast logs)
❤️ Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues page .
📄 License
This project is licensed under the MIT License.