[Title] Add flush() method in log.java.
authoryongsung1.kim <yongsung1.kim@samsung.com>
Fri, 13 Sep 2013 07:31:03 +0000 (16:31 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Fri, 13 Sep 2013 07:31:03 +0000 (16:31 +0900)
InstallManager_java/src/org/tizen/installmanager/lib/Log.java

index c23c12e..aa47da1 100644 (file)
@@ -166,6 +166,7 @@ public class Log {
                try {
                        objfile.write(bufLogTitle.toString());
                        objfile.write(newLine);
+                       objfile.flush();
                } catch (IOException e) {
                        Log.ExceptionLog(e);
                }
@@ -217,6 +218,7 @@ public class Log {
                try {
                        objfile.write(timeStr() + " " + str);
                        objfile.write(newLine);
+                       objfile.flush();
                } catch (IOException e) {
                        // TODO
                        Log.ExceptionLog(e);