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

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

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

Logger.warn介绍

暂无

代码示例

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

public boolean isDependencyInjectionEnabled() {
  try {
    return Boolean.parseBoolean(prop.getProperty("agent.dependencyinjection.enabled"));
  } catch (Exception ex) {
    log.warn("error parsing agent.dependencyinjection.enabled");
  }
  return false;
}

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

/**
* base 64 encoder 
*/
public static String encode(String text) {
  try {
    return org.apache.commons.codec.binary.Base64.encodeBase64String(text.getBytes(Constants.CHARSET));
  } catch (UnsupportedEncodingException ex) {
    LogHelper.getLog().warn("unexpected base64 encoding error", ex);
  }
  return "";
}

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

public long getDeadMessageQueueDuration() {
  String s = prop.getProperty("message.processor.dead.message.queue.duration");
  long ret = 10000;
  if (!Utility.stringIsNullOrEmpty(s)) {
    try {
      ret = Long.parseLong(s);
    } catch (Exception ex) {
      log.warn("error parsing message.processor.dead.message.queue.duration");
    }
  }
  if (ret < 10000) {
    ret = 10000;
  }
  return ret;
}

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

public static List<IEndpointDiscovery> LoadEndpointProviders(ConfigLoader cl) {
    if (cl == null || cl.prop == null) {
      throw new NullPointerException("fgsms properties file is not available.");
    }
    List<String> discovery_providers = cl.getDiscovery_providers();
    List<IEndpointDiscovery> eps = new ArrayList<IEndpointDiscovery>();
    for (int i = 0; i < discovery_providers.size(); i++) {
      try {
        Class t = Class.forName(discovery_providers.get(i));
        IEndpointDiscovery newInstance = (IEndpointDiscovery) t.newInstance();
        newInstance.LoadConfig(cl.prop);
        eps.add(newInstance);
      } catch (Exception ex) {
        log.warn("Unable to load endpoint provider " + discovery_providers.get(i), ex);
      }
    }
    return eps;
  }
}

代码示例来源: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-automated-reporting-service

log.warn(null, ex);
  throw new IllegalArgumentException(ex.getMessage());
  ReportGeneratorPlugin plugin = (ReportGeneratorPlugin) Class.forName(reportType.getType()).newInstance();
} catch (Throwable t) {
  log.warn(null, t);
  throw new IllegalArgumentException(reportType.getType() + " could not be initialized");

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

log.warn("check for configuration file, uddi.properties", ex);
return;

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

log.warn("check for configuration file, uddi.properties", ex);
return;

相关文章