f_logs 0.0.2 f_logs: ^0.0.2 copied to clipboard
FLog provides quick & simple logging solution. All logs are saved to the DB which can then be exported in files.
FLogs Advance Logging Framework #
FLog is an Advanced Logging Framework develop in flutter that provides quick & simple logging solution. All logs are saved to the DB which can then be exported as a zip file.
Overview #
All logs are saved to files in storage path provided. These logs are helpful when developer wants to analyze user activities within the app. A new log file is created every hour on a user event. These logs can be filtered and sorted easily. Logs can easily be exported as zip file base on filter type. This zip file can be uploaded to server on export. FLogs also provide functionality to log arrange data logs into a predefined directory structure. These logs can be used for a specific event within the app.
Features #
- Logs events in files created separately every hour with 'FLogs' logger. (24 hours)
- Files can be compressed and exported for time and day filters
- Clear Logs easily
- Save logs to custom path (Supported in Android only)
- Export Logs to custom path as zip file (Supported in Android only)
- Custom Log formatting
- CSV support
- Custom timestamps support
- Custom data logging support with 'DataLogs' logger.
- Encryption support added
- Multiple directory structures
- Print logs as String
- Export all or single types of logs
- Advanced Automation for deleting logs automatically
- Exports HTML formatted exceptions
To Log data to file simply call like this
1. Simple Info Log
PLog.logThis(TAG, "method_name", "Log: " + Math.random(), LogLevel.INFO);
2. Simple Warning Log
PLog.logThis(TAG, "method_name", "This is a warning message!", LogLevel.WARNING);
3. Error Log
PLog.logThis(TAG, "method_name", "This is a error message!", LogLevel.ERROR);
4. Severe Log
PLog.logThis(TAG, "method_name", "This is a severe error message!", LogLevel.SEVERE);
5. Exception Log
PLog.logThis(TAG, "method_name", "This is a error message!", LogLevel.ERROR, exception: Exception("This is an Exception!"));
PLog.logThis(TAG, "reportError", Exception("This is an Exception!"));
Wiki #
Will be available soon
Kotlin Version #
Checkout the kotlin version: Kotlin Version