use ApplicationSupportDirectory instead of tempDirectory for logs

This commit is contained in:
Neeraj Gupta 2022-06-23 08:48:10 +05:30
parent 79d639b2c6
commit 876b8e1aaf
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -170,7 +170,7 @@ Future _runWithLogs(Function() function, {String prefix = ""}) async {
await SuperLogging.main(
LogConfig(
body: function,
logDirPath: (await getTemporaryDirectory()).path + "/logs",
logDirPath: (await getApplicationSupportDirectory()).path + "/logs",
maxLogFiles: 5,
sentryDsn: kDebugMode ? kSentryDebugDSN : kSentryDSN,
tunnel: kSentryTunnel,