예제 #1
0
  /**
   * ���׿� �α׸� ��� �Ѵ�.
   *
   * @param log
   */
  public static void debugLog(String log) {

    String[] arrEncode = getValue("logDecode").split("\\>");
    try {
      ReadPropertiesAble rp = ReadProperties.getInstance();
      if (rp.getValue("debugLog").equals("Y")) {

        String path = rp.getValue("debugLogPath");
        if (path == null || path.equals("")) path = rp.getPath();
        log = (arrEncode.length == 2) ? new String(log.getBytes(arrEncode[0]), arrEncode[1]) : log;
        // System.out.println(Log.getInstance().logDate()+" : "+log);
        Log.getInstance().println(path + "degug.log", log);
      }

    } catch (Exception e) {
    }
  }
예제 #2
0
  public static void accessMwLog(String log) {

    String[] arrEncode = getValue("logDecode").split("\\>");
    try {
      ReadPropertiesAble rp = ReadProperties.getInstance();
      if (rp.getValue("accessMwLog").equals("Y")) {

        Calendar cal = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat();
        sdf.applyPattern("yyyy-MM-dd");
        String path = rp.getValue("accessMwLogPath");
        if (path == null || path.equals("")) path = rp.getPath();
        log = (arrEncode.length == 2) ? new String(log.getBytes(arrEncode[0]), arrEncode[1]) : log;
        // System.out.println(Log.getInstance().logDate()+" : "+log);
        Log.getInstance()
            .println(path + "access_mw_" + sdf.format(cal.getTime()).toString() + ".log", log);
      }

    } catch (Exception e) {
    }
  }