org.miloss.fgsms.common.Logger.getLogger()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.miloss.fgsms.common.Logger.getLogger()方法的一些代码示例,展示了Logger.getLogger()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getLogger()方法的具体详情如下:
包路径:org.miloss.fgsms.common.Logger
类名称:Logger
方法名:getLogger

Logger.getLogger介绍

暂无

代码示例

代码示例来源:origin: org.mil-oss/fgsms-ui-common

public static String ExportServicePolicy(ServicePolicy pol) {
     try {
        JAXBContext jc = Utility.getSerializationContext();

        Marshaller m = jc.createMarshaller();
        StringWriter sw = new StringWriter();
//            org.miloss.fgsms.services.interfaces.policyconfiguration.ObjectFactory pcsfac = new org.miloss.fgsms.services.interfaces.policyconfiguration.ObjectFactory ();

        m.marshal((pol), sw);
        String s = sw.toString();
        return s;
     } catch (Exception ex) {
        Logger.getLogger(Helper.class).log(Level.ERROR, null, ex);
     }
     return null;
   }

代码示例来源:origin: org.mil-oss/fgsms-ui-common

public String generateLink(Object dataset, int series, Object category) {
  try {
    LogHelper.getLog().log(Level.ERROR, "fgsmsWeb generateLinkSet");
    String s = (String) category;
    return "TransactionLogViewer.jsp?url=" + java.net.URLEncoder.encode(s, "UTF-8");
  } /* public String generateLink(Object dataset, int series, Object category) {
  throw new UnsupportedOperationException("Not supported yet.");
  }*/ catch (UnsupportedEncodingException ex) {
    Logger.getLogger(PerformanceViewerAvgResTime.class.getName()).log(Level.ERROR, null, ex);
  }
  return "";
}

代码示例来源:origin: org.mil-oss/fgsms-ui-common

Logger.getLogger(Helper.class).log(Level.WARN, "error fetching http doc from " + endpoint + ex.getLocalizedMessage());
return "offline";

代码示例来源:origin: org.mil-oss/fgsms-ui-common

Logger.getLogger(Helper.class).log(Level.WARN, "ServicePolicy is unexpectedly null or empty");
   return null;
} catch (Exception ex) {
   Logger.getLogger(Helper.class).log(Level.ERROR, null, ex);

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(Utility.logname).log(Level.ERROR, "problem loading default bueller credentials from the database", ex);
} finally {
  DBUtils.safeClose(rs);

代码示例来源:origin: org.mil-oss/fgsms-uddi-publisher

protected void inquiry(String servicekey) {
  try {
    GetServiceDetail r = new GetServiceDetail();
    r.getServiceKey().add(servicekey);
    ServiceDetail serviceDetail = inquiry.getServiceDetail(r);
    if (serviceDetail != null && serviceDetail.getBusinessService() != null
        && !serviceDetail.getBusinessService().isEmpty()) {
      JAXBContext jc = JAXBContext.newInstance(ServiceDetail.class);
      //JAXB.marshal(jc, null);
      // Unmarshaller u = jc.createUnmarshaller();
      //  Object element = u.unmarshal(new File("foo.xml"));
      //note, this doesn't work
      Marshaller m = jc.createMarshaller();
      StringWriter sw = new StringWriter();
      m.marshal(serviceDetail, sw);
      //Marshalling to a File:
      log.log(Level.INFO, "Results" + sw.toString());
    } else {
      log.log(Level.WARN, "no results return ");
      //return "";
    }
  } catch (Exception ex) {
    Logger.getLogger(UddiPublisher.class.getName()).log(Level.ERROR, null, ex);
  }
  //  return "";
}

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(logname).log(Level.WARN, "Error caught attempting to obtain local ip addresses " + ex.getLocalizedMessage());
      str = str.replaceFirst("\\:[a-zA-Z0-9\\-\\.]+:", host);
    Logger.getLogger(logname).log(Level.DEBUG, "URL Modifier - original " + url + " modified " + str + " client=true");
    return str;
      Logger.getLogger(logname).log(Level.WARN, "Client side url modifier, error caught trying to rdns the remote entry of  " + url + ex.getLocalizedMessage());
    Logger.getLogger(logname).log(Level.DEBUG, "URL Modifier - original " + url + " modified " + str + " client=true");
    return str;
  } else {
    if (!find)
      Logger.getLogger(logname).log(Level.DEBUG, "unexpected error modifing the url " + url + " maybe it's not an actual url?");
      return url;
    Logger.getLogger(logname).log(Level.DEBUG, "URL Modifier - original " + url + " modified " + str + " client=true");
    return str;
Logger.getLogger(logname).log(Level.DEBUG, "URL Modifier - original " + url + " modified " + str);

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(Utility.logname).log(Level.ERROR, "problem loading credentials for " + url + " from the database", ex);
} finally {
  DBUtils.safeClose(rs);

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(Utility.logname).log(Level.ERROR, "problem loading " + keyfilter + " settings from the database", ex);
} finally {
  DBUtils.safeClose(rs);

代码示例来源:origin: org.mil-oss/fgsms-sla-processor

private static void SendLogger(String msg, SLAAction logAction, String url, String incident) {
  if (logAction != null) {
    NameValuePair GetNameValuePairByName = Utility.getNameValuePairByName(logAction.getParameterNameValue(), "Logger");
    if (GetNameValuePairByName != null) {
      Logger l = null;
      if (GetNameValuePairByName.isEncrypted()) {
        l = Logger.getLogger(Utility.DE(GetNameValuePairByName.getValue()));
      } else {
        l = Logger.getLogger((GetNameValuePairByName.getValue()));
      }
      l.log(Level.WARN, SLACommon.getBundleString("SLALoggerPrefix")
          + url + " message: " + msg.toString() + " SLAFaultID: " + incident);
    }
  } else {
    log.warn("log action is null, defaulting");
    log.log(Level.WARN, SLACommon.getBundleString("SLALoggerPrefix")
        + url + " message: " + msg.toString() + " SLAFaultID: " + incident);
  }
}

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(Utility.logname).log(Level.ERROR, "problem loading settings from the database", ex);
} finally {
  DBUtils.safeClose(rs);

代码示例来源:origin: org.mil-oss/fgsms-common

Logger.getLogger(Utility.logname).log(Level.ERROR, "problem loading " + keyfilter + " " + namefilter + " settings from the database", ex);
} finally {
  DBUtils.safeClose(rs);

代码示例来源:origin: org.mil-oss/fgsms-common

ret.setAgentsEnabled(true);
    } catch (SQLException ex) {
      Logger.getLogger(Utility.logname).log(Level.ERROR, "error setting global policy", ex);
  Logger.getLogger(Utility.logname).log(Level.ERROR, "error getting global policy", ex);
} finally {
  DBUtils.safeClose(results);

代码示例来源:origin: org.mil-oss/fgsms-agentcore

Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName).log(Level.WARN, "unable to get soap header for dependency detection", ex);

代码示例来源:origin: org.mil-oss/fgsms-agentcore

Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName).log(Level.WARN, "unable to get soap header for dependency detection", ex);

代码示例来源:origin: org.mil-oss/fgsms-agentcore

Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName).log(Level.WARN, "unable to insert soap header for dependency detection", ex);

代码示例来源:origin: org.mil-oss/fgsms-agentcore

Logger.getLogger(org.miloss.fgsms.common.Constants.LoggerName).log(Level.WARN, "unable to insert soap header for dependency detection", ex);

代码示例来源:origin: org.mil-oss/fgsms-ui-common

Logger.getLogger(Helper.class).log(Level.ERROR, null, ex);

代码示例来源:origin: org.mil-oss/fgsms-ui-common

LogHelper.getLog().log(Level.ERROR, "TransactionLogViewer, access denied when error rendering data for user ");
} catch (Exception ex) {
  Logger.getLogger("fgsms.Web").log(Level.WARN, "Error caught", ex);
  out += ("There was an error processing your request. Message: " + ex.getLocalizedMessage());
  LogHelper.getLog().log(Level.ERROR, "TransactionLogViewer, error rendering data for user ", ex);

相关文章