锘??xml version="1.0" encoding="utf-8" standalone="yes"?>蜜臀久久99精品久久久无需会员,四虎影视2018在线播放alocalhost,国产精品99久久免费观看http://www.aygfsteel.com/pdw2009/category/46249.html鏈珯涓嶅啀鏇存柊錛屾榪庡厜涓? <a >java寮鍙戞妧鏈綉</a>zh-cnSun, 05 Sep 2010 08:57:39 GMTSun, 05 Sep 2010 08:57:39 GMT60 blackberry 鏃ュ織http://www.aygfsteel.com/pdw2009/archive/2010/09/05/331088.html鏈夌尗鐩鎬即鐨勬棩瀛?/dc:creator>鏈夌尗鐩鎬即鐨勬棩瀛?/author>Sun, 05 Sep 2010 08:55:00 GMThttp://www.aygfsteel.com/pdw2009/archive/2010/09/05/331088.htmlhttp://www.aygfsteel.com/pdw2009/comments/331088.htmlhttp://www.aygfsteel.com/pdw2009/archive/2010/09/05/331088.html#Feedback0http://www.aygfsteel.com/pdw2009/comments/commentRss/331088.htmlhttp://www.aygfsteel.com/pdw2009/services/trackbacks/331088.htmlpackage com.ff.utils;

import java.util.Date;

import net.rim.device.api.system.EventLogger;

/**
 * 鏃ュ織綾?br />  * @author   2010-09-04
 *
 */
public class Logger {

 private static final String SEPARATOR = "   ";
 private static final long GUID = 0x4c9d3452d880a2f1L;
 private static final String APP_NAME = "xxxc ";

 private Logger() {
  EventLogger.register(GUID, APP_NAME, EventLogger.VIEWER_STRING);
 }

 private static Logger logger = new Logger();

 public static Logger getLogger() {
  return logger;
 }

 /**
  * Log the information.
  *
  * @param message
  *            The message you will log
  */
 public void info(String message) {
  if (message == null || message.trim().equals(""))
   return;
  String log = "INFO: " + new Date().toString() + SEPARATOR + message;
  try {
   log = new String(log.getBytes(), "UTF-8");
   byte[] msg_bytes = log.getBytes();
   EventLogger.logEvent(GUID, msg_bytes, EventLogger.ALWAYS_LOG);
  } catch (Exception ex) {
   System.err.println(ex);
  }
 }

 public void error(Exception e) {
  StringBuffer log = new StringBuffer();
  log.append("ERROR: " + new Date().toString() + SEPARATOR);
  log.append(e.getMessage() + " \r\n ");

  try {
   byte[] msg_bytes = new String(log.toString().getBytes(), "UTF-8").getBytes();
   EventLogger.logEvent(GUID, msg_bytes);
  } catch (Exception ex) {
   System.err.println(ex);
  }
 }
 
 public void error(String message, Exception e) {
  StringBuffer log = new StringBuffer();
  log.append("ERROR: " + new Date().toString() + SEPARATOR);
  if (message != null || !message.trim().equals("")) {
   log.append("message: " + message + " \r\n ");
  }
  log.append("error: " + e.getMessage() + " \r\n ");

  try {
   byte[] msg_bytes = new String(log.toString().getBytes(), "UTF-8").getBytes();
   EventLogger.logEvent(GUID, msg_bytes);
  } catch (Exception ex) {
   System.err.println(ex);
  }
 }
}


涓嶇鏄湪妯℃嫙鍣ㄨ繕鏄湡鏈猴紝鏃ュ織榪樻槸蹇呴』鐨?.....濡傛灉璇ユ枃瀵逛綘鏈夌敤錛屼負浜嗚〃紺哄浣滆呯殑鏀寔錛岄夯鐑︿綘鍗曞嚮涓涓嬩笅闈㈢殑騫垮憡錛岃阿璋?br />



]]>
主站蜘蛛池模板: 本溪市| 黎城县| 绩溪县| 武胜县| 南岸区| 额尔古纳市| 泸西县| 淮南市| 濮阳市| 库车县| 安庆市| 永嘉县| 登封市| 兴宁市| 商水县| 大英县| 崇阳县| 阳朔县| 双牌县| 蒙城县| 九台市| 吐鲁番市| 湘西| 九龙坡区| 正阳县| 海城市| 洛浦县| 萍乡市| 六盘水市| 安图县| 渝中区| 三门县| 桐梓县| 额敏县| 江阴市| 奉新县| 临沂市| 筠连县| 亚东县| 华阴市| 常熟市|