1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Bring back storagePath argument in startLogging

This commit is contained in:
Bartosz Przybylski 2015-11-07 18:07:19 +01:00 committed by David A. Velasco
parent 5dde382fbb
commit 9adb155f7e

View File

@ -71,11 +71,11 @@ public class Log_OC {
/** /**
* Start doing logging * Start doing logging
* @param logPath : path of log file * @param storagePath : directory for keeping logs
*/ */
public static void startLogging() { public static void startLogging(String storagePath) {
String logPath = Environment.getExternalStorageDirectory() + File.separator + String logPath = storagePath + File.separator +
mOwncloudDataFolderLog + File.separator + LOG_FOLDER_NAME; mOwncloudDataFolderLog + File.separator + LOG_FOLDER_NAME;
mFolder = new File(logPath); mFolder = new File(logPath);
mLogFile = new File(mFolder + File.separator + mLogFileNames[0]); mLogFile = new File(mFolder + File.separator + mLogFileNames[0]);