[Title] add boilerplate and remove injector.log
authorjihye kim <jihye1128.kim@samsung.com>
Fri, 24 Aug 2012 05:06:46 +0000 (14:06 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Fri, 24 Aug 2012 05:32:56 +0000 (14:32 +0900)
[Type] work
[Module] event injector
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

org.tizen.location.map/src/org/tizen/location/map/page/CheckNetThread.java
org.tizen.location.map/src/org/tizen/location/map/page/DebugLog.java

index a359d55..aef5dff 100644 (file)
@@ -1,3 +1,30 @@
+/*
+ * org.tizen.location.map
+ *
+ * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: 
+ * Sungmin Ha <sungmin82.ha@samsung.com>
+ * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
+ * jihye kim <jihye1128.kim@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ * Contributors:
+ * - S-Core Co., Ltd
+ *
+ */
+
 package org.tizen.location.map.page;
 
 import java.io.BufferedReader;
index d162717..734a9cc 100644 (file)
@@ -1,12 +1,12 @@
 /*
- * org.tizen.location.core
+ * org.tizen.location.map
  *
  * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
  *
  * Contact: 
  * Sungmin Ha <sungmin82.ha@samsung.com>
  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * DongKyun Yun <dk77.yun@samsung.com>
+ * jihye kim <jihye1128.kim@samsung.com>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 package org.tizen.location.map.page;
 
 import java.util.Calendar;
-import java.util.logging.FileHandler;
+//import java.util.logging.FileHandler;
 import java.util.logging.Formatter;
-import java.util.logging.Handler;
-import java.util.logging.Level;
+//import java.util.logging.Handler;
+//import java.util.logging.Level;
 import java.util.logging.LogRecord;
-import java.util.logging.Logger;
+//import java.util.logging.Logger;
 
 public class DebugLog {
-       private static final String LOG_FILE_NAME = "injector.log";
-       private static Logger logger;
+       //private static final String LOG_FILE_NAME = "injector.log";
+       //private static Logger logger;
 
        static {
                synchronized(DebugLog.class) {
-                       init();
+                       //init();
                }
        }
 
+       /*
        private static void init() {
                logger = Logger.getLogger("Event Injector");
                logger.setUseParentHandlers(false);
                //File logFolder;
                Handler logFileHandler;
                try {
-                       /*
-                       logFolder = new File(FilePath.getInstance().getTizenVmsArchPath());
-                       if (!logFolder.exists()) {
-                               logFolder.mkdirs();
-                       }
-                       */
-                       logFileHandler = new FileHandler(/*logFolder.getAbsolutePath() + File.separator + */LOG_FILE_NAME);
+
+                       //logFolder = new File(FilePath.getInstance().getTizenVmsArchPath());
+                       //if (!logFolder.exists()) {
+                       //      logFolder.mkdirs();
+                       //}
+
+                       //logFileHandler = new FileHandler(logFolder.getAbsolutePath() + File.separator + LOG_FILE_NAME);
+                       logFileHandler = new FileHandler(LOG_FILE_NAME);
 
                        logger.setLevel(Level.ALL);
                        logFileHandler.setLevel(Level.INFO);
@@ -69,9 +71,11 @@ public class DebugLog {
                        e.getMessage();
                }
        }
+       */
 
        public static void log(String msg) {
-               logger.info(msg);
+               //logger.info(msg);
+               System.out.println("[INJECTOR] " + msg);
        }
 }