1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-07-25 18:57:33 +00:00

Add stopLogging method to Log_OC

This commit is contained in:
Bartosz Przybylski 2015-11-09 17:45:59 +01:00 committed by David A. Velasco
parent 9adb155f7e
commit 9cbf572510

View File

@ -111,6 +111,22 @@ public class Log_OC {
}
}
public static void stopLogging() {
try {
mBuf.close();
isEnabled = false;
mLogFile = null;
mFolder = null;
mBuf = null;
isMaxFileSizeReached = false;
isEnabled = false;
} catch (IOException e) {
e.printStackTrace();
}
}
/**
* Delete history logging
*/