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

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

本文整理了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

  1. public static String ExportServicePolicy(ServicePolicy pol) {
  2. try {
  3. JAXBContext jc = Utility.getSerializationContext();
  4. Marshaller m = jc.createMarshaller();
  5. StringWriter sw = new StringWriter();
  6. // org.miloss.fgsms.services.interfaces.policyconfiguration.ObjectFactory pcsfac = new org.miloss.fgsms.services.interfaces.policyconfiguration.ObjectFactory ();
  7. m.marshal((pol), sw);
  8. String s = sw.toString();
  9. return s;
  10. } catch (Exception ex) {
  11. Logger.getLogger(Helper.class).log(Level.ERROR, null, ex);
  12. }
  13. return null;
  14. }

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

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

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

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

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

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

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

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

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

  1. protected void inquiry(String servicekey) {
  2. try {
  3. GetServiceDetail r = new GetServiceDetail();
  4. r.getServiceKey().add(servicekey);
  5. ServiceDetail serviceDetail = inquiry.getServiceDetail(r);
  6. if (serviceDetail != null && serviceDetail.getBusinessService() != null
  7. && !serviceDetail.getBusinessService().isEmpty()) {
  8. JAXBContext jc = JAXBContext.newInstance(ServiceDetail.class);
  9. //JAXB.marshal(jc, null);
  10. // Unmarshaller u = jc.createUnmarshaller();
  11. // Object element = u.unmarshal(new File("foo.xml"));
  12. //note, this doesn't work
  13. Marshaller m = jc.createMarshaller();
  14. StringWriter sw = new StringWriter();
  15. m.marshal(serviceDetail, sw);
  16. //Marshalling to a File:
  17. log.log(Level.INFO, "Results" + sw.toString());
  18. } else {
  19. log.log(Level.WARN, "no results return ");
  20. //return "";
  21. }
  22. } catch (Exception ex) {
  23. Logger.getLogger(UddiPublisher.class.getName()).log(Level.ERROR, null, ex);
  24. }
  25. // return "";
  26. }

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

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

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

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

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

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

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

  1. private static void SendLogger(String msg, SLAAction logAction, String url, String incident) {
  2. if (logAction != null) {
  3. NameValuePair GetNameValuePairByName = Utility.getNameValuePairByName(logAction.getParameterNameValue(), "Logger");
  4. if (GetNameValuePairByName != null) {
  5. Logger l = null;
  6. if (GetNameValuePairByName.isEncrypted()) {
  7. l = Logger.getLogger(Utility.DE(GetNameValuePairByName.getValue()));
  8. } else {
  9. l = Logger.getLogger((GetNameValuePairByName.getValue()));
  10. }
  11. l.log(Level.WARN, SLACommon.getBundleString("SLALoggerPrefix")
  12. + url + " message: " + msg.toString() + " SLAFaultID: " + incident);
  13. }
  14. } else {
  15. log.warn("log action is null, defaulting");
  16. log.log(Level.WARN, SLACommon.getBundleString("SLALoggerPrefix")
  17. + url + " message: " + msg.toString() + " SLAFaultID: " + incident);
  18. }
  19. }

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

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

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

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

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

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

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

  1. 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

  1. 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

  1. 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

  1. 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

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

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

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

相关文章