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:
parent
9adb155f7e
commit
9cbf572510
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user