+/*
+ * 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;
/*
- * 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);
e.getMessage();
}
}
+ */
public static void log(String msg) {
- logger.info(msg);
+ //logger.info(msg);
+ System.out.println("[INJECTOR] " + msg);
}
}