Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/src/com/mapswithme/util/log/FileLoggerStrategy.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/util/log/FileLoggerStrategy.java b/android/src/com/mapswithme/util/log/FileLoggerStrategy.java
index 5fbf21bfe2..c77465cb06 100644
--- a/android/src/com/mapswithme/util/log/FileLoggerStrategy.java
+++ b/android/src/com/mapswithme/util/log/FileLoggerStrategy.java
@@ -18,6 +18,7 @@ import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DateFormat;
+import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.concurrent.Executor;
@@ -142,7 +143,7 @@ class FileLoggerStrategy implements LoggerStrategy
{
fw = new FileWriter(mFilePath, true);
}
- DateFormat formatter = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);
+ DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.US);
fw.write(formatter.format(new Date()) + " " + mCallingThread + ": " + mData + "\n");
}
catch (IOException e)