1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-09 08:56:22 +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

@ -65,7 +65,7 @@ public class Log_OC {
}
public static void wtf(String TAG, String message) {
Log.wtf(TAG,message);
Log.wtf(TAG, message);
appendLog(TAG+" : "+ message);
}
@ -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
*/