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

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

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

  1. public boolean isDependencyInjectionEnabled() {
  2. try {
  3. return Boolean.parseBoolean(prop.getProperty("agent.dependencyinjection.enabled"));
  4. } catch (Exception ex) {
  5. log.warn("error parsing agent.dependencyinjection.enabled");
  6. }
  7. return false;
  8. }

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

  1. /**
  2. * base 64 encoder
  3. */
  4. public static String encode(String text) {
  5. try {
  6. return org.apache.commons.codec.binary.Base64.encodeBase64String(text.getBytes(Constants.CHARSET));
  7. } catch (UnsupportedEncodingException ex) {
  8. LogHelper.getLog().warn("unexpected base64 encoding error", ex);
  9. }
  10. return "";
  11. }

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

  1. public long getDeadMessageQueueDuration() {
  2. String s = prop.getProperty("message.processor.dead.message.queue.duration");
  3. long ret = 10000;
  4. if (!Utility.stringIsNullOrEmpty(s)) {
  5. try {
  6. ret = Long.parseLong(s);
  7. } catch (Exception ex) {
  8. log.warn("error parsing message.processor.dead.message.queue.duration");
  9. }
  10. }
  11. if (ret < 10000) {
  12. ret = 10000;
  13. }
  14. return ret;
  15. }

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

  1. public static List<IEndpointDiscovery> LoadEndpointProviders(ConfigLoader cl) {
  2. if (cl == null || cl.prop == null) {
  3. throw new NullPointerException("fgsms properties file is not available.");
  4. }
  5. List<String> discovery_providers = cl.getDiscovery_providers();
  6. List<IEndpointDiscovery> eps = new ArrayList<IEndpointDiscovery>();
  7. for (int i = 0; i < discovery_providers.size(); i++) {
  8. try {
  9. Class t = Class.forName(discovery_providers.get(i));
  10. IEndpointDiscovery newInstance = (IEndpointDiscovery) t.newInstance();
  11. newInstance.LoadConfig(cl.prop);
  12. eps.add(newInstance);
  13. } catch (Exception ex) {
  14. log.warn("Unable to load endpoint provider " + discovery_providers.get(i), ex);
  15. }
  16. }
  17. return eps;
  18. }
  19. }

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

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

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

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

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

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

相关文章