FlutterLogs class

Constructors

FlutterLogs()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

clearLogs() Future<void>
exportAllFileLogs({bool decryptBeforeExporting = false}) Future<void>
exportFileLogForName({String logFileName = "", bool decryptBeforeExporting = false}) Future<void>
exportLogs({ExportType exportType = ExportType.ALL, bool decryptBeforeExporting = false}) Future<void>
initLogs({List<LogLevel>? logLevelsEnabled, List<String>? logTypesEnabled, int logsRetentionPeriodInDays = 14, int zipsRetentionPeriodInDays = 3, bool autoDeleteZipOnExport = false, bool autoClearLogs = true, bool autoExportErrors = true, bool encryptionEnabled = false, String encryptionKey = "", required DirectoryStructure directoryStructure, bool logSystemCrashes = true, bool isDebuggable = true, bool debugFileOperations = true, bool attachTimeStamp = true, bool attachNoOfFiles = true, required TimeStampFormat timeStampFormat, required LogFileExtension logFileExtension, bool zipFilesOnly = false, String logsWriteDirectoryName = "", String logsExportZipFileName = "", String logsExportDirectoryName = "", int singleLogFileSize = 2, bool enabled = true}) Future<String>
initMQTT({String topic = "", String brokerUrl = "", String certificate = "", String clientId = "", String port = "", int qos = 0, bool retained = false, bool writeLogsToLocalStorage = true, bool debug = true, int initialDelaySecondsForPublishing = 30}) Future<String?>
logError(String tag, String subTag, String logMessage) Future<void>
logErrorTrace(String tag, String subTag, String logMessage, Error e) Future<void>
logInfo(String tag, String subTag, String logMessage) Future<void>
logThis({String tag = "", String subTag = "", String logMessage = "", LogLevel level = LogLevel.INFO, Exception? exception, Error? error, String errorMessage = ""}) Future<void>
logToFile({String logFileName = "", bool overwrite = false, String logMessage = "", bool appendTimeStamp = false}) Future<void>
logWarn(String tag, String subTag, String logMessage) Future<void>
printDebugMessage(String msg, int msgDebugLevel) → void
printFileLogForName({String logFileName = "", bool decryptBeforeExporting = false}) Future<void>
printLogs({ExportType exportType = ExportType.ALL, bool decryptBeforeExporting = false}) Future<void>
setDebugLevel(int value) → void
Set the message level value value for debugging purpose. 0 = no messages, 1 = errors, 2 = all
setMetaInfo({String appId = "", String appName = "", String appVersion = "", String language = "", String deviceId = "", String environmentId = "", String environmentName = "", String organizationId = "", String organizationUnitId = "", String userId = "", String userName = "", String userEmail = "", String deviceSerial = "", String deviceBrand = "", String deviceName = "", String deviceManufacturer = "", String deviceModel = "", String deviceSdkInt = "", String deviceBatteryPercent = "", String latitude = "", String longitude = "", String labels = ""}) Future<String>

Constants

channel → const MethodChannel