FlutterLogs.logInfo(TAG, "DebugScreen", "setUpLogs: Setting up logs..");
save file
var now = new DateTime.now();
var formatter = new DateFormat('ddMMyH');
String formattedDate = formatter.format(now);
String logName = formattedDate;
print(formattedDate);
FlutterLogs.logToFile(
logFileName: logName,
overwrite: true,
//If set 'true' logger will append instead of overwriting
logMessage:
"This is a log message: ${DateTime.now().millisecondsSinceEpoch}, it will be saved to my log file named: ",
appendTimeStamp: true);
i am test on IOS 14.3
add logs test:
FlutterLogs.logInfo(TAG, "DebugScreen", "setUpLogs: Setting up logs..");
save file
but no file any