Welcome to Chamber, a intuitive logging package for Flutter apps. Designed to help track issues on devices outside of the emulator world.
- Easy Logging: Log messages with optional categorization.
- Flexible Retrieval: Retrieve logs based on categories.
- Clear Logs with Ease: Clear all logs or specific categories.
- In-App Log Display: View logs in a user-friendly dialog.
To get started with Chamber, follow these simple steps:
Add Chamber to your Flutter project by including it in your pubspec.yaml
file:
dependencies:
chamber: ^1.2.0
Here's a quick guide to using Chamber in your app:
Chamber.log("User logged in successfully", "auth");
Chamber.log("This is a general log message"); // Defaults to "general" key.
List<String> authLogs = Chamber.get("auth");
List<String> generalLogs = Chamber.get();
Chamber.clear("auth"); // Clears only 'auth' logs.
Chamber.clear(); // Clears all logs.
Chamber.display(context); // Displays logs in a dialog.
Chamber.display(context, "auth"); // Displays logs of a specific key in a dialog.
Contributions to Chamber are welcome!
Chamber is released under the MIT License.
If you encounter any issues or have suggestions, please open an issue on our GitHub repository.