storeLog method
dynamic
storeLog({})
Implementation
storeLog(
{required String title,
required String message,
required LogLevel level,
required String enviroment,
dynamic jsonData}) {
if (jsonData != null) {
jsonData = jsonEncode(jsonData);
}
final logEntry = LogModel(
title: title,
message: message,
level: Constants.logLevels[level]!,
enviroment: enviroment,
jsonData: jsonData,
);
logList.add(logEntry);
}