Skip to content
Zubair Rehman edited this page May 2, 2019 · 2 revisions

Welcome to the Flogs wiki!

FLogs is written in dart. It basically features two types of loggers (FLog & DataLog) with many of advanced features needed for logging. Logs are saved in database which can then be exported in document directory of Android |iOS device. Logs can be compressed and exported as zip file or they can be read as plain String. All configuration is done on logs configuration file. FLogs must be provided with the configuration before using any of its methods.

FLog

These are hourly log and comes with 4 different logging levels INFO, WARNING, ERROR & SEVER. A separate file will be created every hour to easily find data during debugging. These logs can be used using 'FLog' object.

FLog.logThis(
      className: "HomePage",
      methodName: "_buildRow1",
      text: "My log",
      type: LogLevel.INFO);

DataLogs

These are custom log files with a distinct name. There are some types provided in this library, but other types can be added too. These types are defined in configuration like this:

dataLogTypes = [
      DataLogType.DEVICE.toString(),
      DataLogType.NETWORK.toString(),
    ]

These logs can be used using 'FLog' object.

FLog.logThis(
      className: "HomePage",
      methodName: "_buildRow1",
      text: "My log",
      type: LogLevel.SEVERE,
      dataLogType: DataLogType.DEVICE.toString());
Clone this wiki locally