layrz_logging 1.1.0
layrz_logging: ^1.1.0 copied to clipboard
Logging system for Flutter applications
layrz_logging #
Managing errors and logs can be a pain, but with layrz_logging
you can easily manage your logs and errors in your Flutter applications.
Supports all of the platforms that Flutter supports.
Usage #
To use this plugin, add layrz_logging
as a dependency in your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
layrz_logging: ^latest_version
Then you can import the package in your Dart code:
import 'package:layrz_logging/layrz_logging.dart';
/// on your void main() function
void main() {
WidgetsBindingInstance.ensureInitialized();
LayrzLogging.ensureInitialized(); // Be careful, this method should be invoked after `WidgetsBindingInstance.ensureInitialized()`
runApp(MyApp());
}
/// And, wherever you want to log something
LayrzLogging.debug("Hello, World!"); // Debug error level
LayrzLogging.info("Hello, World!"); // Info error level
LayrzLogging.warning("Hello, World!"); // Warning error level
LayrzLogging.error("Hello, World!"); // Error error level
LayrzLogging.fatal("Hello, World!"); // Fatal error level
/// Also, LayrzLogging is capable to handle all flutter or platform-specific errors without doing anything
/// You can also get the logs
///
/// On native platforms (Android, iOS, macOS, Windows, Linux) the logs are saved in a file
/// On web platform, the logs are stored on an `List`, and limited to 100 records
List<String> logs = await LayrzLogging.fetchLogs();
FAQ #
Why is this package called layrz_logging
? #
All packages developed by Layrz are prefixed with layrz_
, check out our other packages on pub.dev.
I need to pay to use this package? #
No! This library is free and open source, you can use it in your projects without any cost, but if you want to support us, give us a thumbs up here in pub.dev and star our Repository!
Can I contribute to this package? #
Yes! We are open to contributions, feel free to open a pull request or an issue on the Repository!
I have a question, how can I contact you? #
If you need more assistance, you open an issue on the Repository and we're happy to help you :)
License #
This project is licensed under the MIT License - see the LICENSE file for details.
This project is maintained by Golden M with authorization of Layrz LTD.
Who are you? / Want to work with us? #
Golden M is a software and hardware development company what is working on a new, innovative and disruptive technologies. For more information, contact us at sales@goldenm.com or via WhatsApp at +(507)-6979-3073.