f_logs 0.0.2 copy "f_logs: ^0.0.2" to clipboard
f_logs: ^0.0.2 copied to clipboard

outdated

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 #

  1. Logs events in files created separately every hour with 'FLogs' logger. (24 hours)
  2. Files can be compressed and exported for time and day filters
  3. Clear Logs easily
  4. Save logs to custom path (Supported in Android only)
  5. Export Logs to custom path as zip file (Supported in Android only)
  6. Custom Log formatting
  7. CSV support
  8. Custom timestamps support
  9. Custom data logging support with 'DataLogs' logger.
  10. Encryption support added
  11. Multiple directory structures
  12. Print logs as String
  13. Export all or single types of logs
  14. Advanced Automation for deleting logs automatically
  15. 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

94
likes
0
pub points
93%
popularity

Publisher

unverified uploader

FLog provides quick & simple logging solution. All logs are saved to the DB which can then be exported in files.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl, meta, path, path_provider, permission_handler, sembast

More

Packages that depend on f_logs