From 776f1e50cf50483e232ac9edf9cb18f7f39103d8 Mon Sep 17 00:00:00 2001 From: jihye kim Date: Fri, 24 Aug 2012 14:06:46 +0900 Subject: [PATCH] [Title] add boilerplate and remove injector.log [Type] work [Module] event injector [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- .../tizen/location/map/page/CheckNetThread.java | 27 +++++++++++++++ .../src/org/tizen/location/map/page/DebugLog.java | 38 ++++++++++++---------- package/pkginfo.manifest | 2 +- 3 files changed, 49 insertions(+), 18 deletions(-) diff --git a/org.tizen.location.map/src/org/tizen/location/map/page/CheckNetThread.java b/org.tizen.location.map/src/org/tizen/location/map/page/CheckNetThread.java index a359d55..aef5dff 100644 --- a/org.tizen.location.map/src/org/tizen/location/map/page/CheckNetThread.java +++ b/org.tizen.location.map/src/org/tizen/location/map/page/CheckNetThread.java @@ -1,3 +1,30 @@ +/* + * org.tizen.location.map + * + * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + * + * Contact: + * Sungmin Ha + * YeongKyoon Lee + * jihye kim + * + * 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; diff --git a/org.tizen.location.map/src/org/tizen/location/map/page/DebugLog.java b/org.tizen.location.map/src/org/tizen/location/map/page/DebugLog.java index d162717..734a9cc 100644 --- a/org.tizen.location.map/src/org/tizen/location/map/page/DebugLog.java +++ b/org.tizen.location.map/src/org/tizen/location/map/page/DebugLog.java @@ -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 * YeongKyoon Lee - * DongKyun Yun + * jihye kim * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,36 +28,38 @@ 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); } } diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index ee8ad93..98cc7ee 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Source:eventinjector-eplugin -Version:0.2.57 +Version:0.2.58 Maintainer:yeongkyoon Lee , sungmin Ha Package:eventinjector-eplugin -- 2.7.4