Package org.apache.log4j

Examples of org.apache.log4j.Logger.warn()


        // If SBMLElements.isEmpty => there is a syntax
        // error in the SBMLDocument
        // If parser == null => there is no parser for
        // the namespace of this element
        logger.warn("!!! event.isEndElement: there is a problem in your SBML file !!!!");
        logger.warn("This should never happen, there is probably a problem with the parsers used." +
            "\n Try to check if one needed parser is missing or if you are using a parser in development.");
      }
    } else {
      // The initialized parsers map should be
      // initialized as soon as there is a sbml node.
View Full Code Here


    } else {
      // The initialized parsers map should be
      // initialized as soon as there is a sbml node.
      // If it is null, there is an syntax error in the SBML
      // file.
      logger.warn("The parsers are not initialized, this should not happen !!!");
    }
   
    // We return null as long as we did not find the SBMLDocument closing tag
    return null;
 
View Full Code Here

      value = true;
    } else if (!(toTest.equalsIgnoreCase("true")
        || toTest.equalsIgnoreCase("false")))
    {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create a boolean from the string " + valueAsStr);
    }

    return value;
  }
 
View Full Code Here

        value = Double.POSITIVE_INFINITY;
      } else if (toTest.equalsIgnoreCase("-INF")) {
        value = Double.NEGATIVE_INFINITY;
      } else {
        Logger logger = Logger.getLogger(StringTools.class);
        logger.warn("Could not create a double from the string '" + valueAsStr + "'");
      }
    }

    return value;
  }
View Full Code Here

    int value = 0;
    try {
      value = Integer.parseInt(valueAsStr.trim());
    } catch (NumberFormatException e) {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create an integer from the string " + valueAsStr);
    }
    return value;
  }

  /**
 
View Full Code Here

    short v = 0;
    try {
      v = Short.parseShort(value.trim());
    } catch (NumberFormatException e) {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create a short from the string " + value);
    }
    return v;
  }
 
  /**
 
View Full Code Here

      }
    }

    if (!correct) {
      Logger logger = Logger.getLogger(SBO.class);
      logger.warn("The SBO term '" + sboTerm + "' does not seem to be valid.");
    }

    return correct;
  }
View Full Code Here

      public void trace(Object message, Throwable exception) {
        logger.trace(message, exception);
      }

      public void warn(Object message) {
        logger.warn(message);
      }

      public void warn(Object message, Throwable exception) {
        logger.warn(message, exception);
      }
View Full Code Here

      public void warn(Object message) {
        logger.warn(message);
      }

      public void warn(Object message, Throwable exception) {
        logger.warn(message, exception);
      }
    };
    logMap.put(name, log);
    return log;
  }
View Full Code Here

            formatPattern));
      } else {
        // Warn and do not apply the pattern. (When not applying the
        // pattern, the application is still in a good state.)
        Logger logger = Logger.getLogger(getClass());
        logger.warn("Used format pattern with an unknown editor type. "
            + "Only JSpinner.NumberEditor and JSpinner.DateEditor are supported.");
      }
    }
    return spinner;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.