import android.util.Log;
+
public class Log_OC {
+
private static boolean isEnabled = false;
private static File logFile;
private static File folder;
}
public static void startLogging(String logPath) {
-
- folder = new File(logPath+File.separator+"log");
+ folder = new File(logPath);
logFile = new File(folder+File.separator+"log.txt");
if (!folder.exists()) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd_HHmmss",Locale.getDefault());
String currentDateandTime = sdf.format(new Date());
if (logFile != null) {
- logFile.renameTo(new File(folder+File.separator+"log_"+currentDateandTime));
+ logFile.renameTo(new File(folder+File.separator+"Owncloud_"+currentDateandTime+".log"));
+
isEnabled = false;
try {
buf.close();
buf.newLine();
} catch (IOException e) {
e.printStackTrace();
- }
- }
+ }
+ }
}