Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.error()


    public static Set fireEvents(SCXMLExecutor exec, TriggerEvent[] evts) {
        try {
            exec.triggerEvents(evts);
        } catch (Exception e) {
            Log log = LogFactory.getLog(SCXMLTestHelper.class);
            log.error(e.getMessage(), e);
            Assert.fail(e.getMessage() + " while firing events " + evts);
        }
        return exec.getCurrentStatus().getStates();
    }
View Full Code Here


      }

      return this.context;
    }
    catch (RuntimeException ex) {
      logger.error("Context initialization failed", ex);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, ex);
      throw ex;
    }
    catch (Error err) {
      logger.error("Context initialization failed", err);
View Full Code Here

      logger.error("Context initialization failed", ex);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, ex);
      throw ex;
    }
    catch (Error err) {
      logger.error("Context initialization failed", err);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, err);
      throw err;
    }
  }
View Full Code Here

      }

      return this.context;
    }
    catch (RuntimeException ex) {
      logger.error("Context initialization failed", ex);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, ex);
      throw ex;
    }
    catch (Error err) {
      logger.error("Context initialization failed", err);
View Full Code Here

      logger.error("Context initialization failed", ex);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, ex);
      throw ex;
    }
    catch (Error err) {
      logger.error("Context initialization failed", err);
      servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, err);
      throw err;
    }
  }
View Full Code Here

    Log logger = LogFactory.getLog(getCategory(entry));
    switch (entry.getLevel()) {
      case SEVERE:
        if (logger.isErrorEnabled()) {
          if (entry.hasException()) {
            logger.error(getMessageString(entry), getException(entry));
          }
          else {
            logger.error(getMessageString(entry));
          }
        }
View Full Code Here

        if (logger.isErrorEnabled()) {
          if (entry.hasException()) {
            logger.error(getMessageString(entry), getException(entry));
          }
          else {
            logger.error(getMessageString(entry));
          }
        }
        break;
      case WARNING:
        if (logger.isWarnEnabled()) {
View Full Code Here

    Log logger = LogFactory.getLog(getCategory(entry));
    switch (entry.getLevel()) {
      case SEVERE:
        if (logger.isErrorEnabled()) {
          if (entry.hasException()) {
            logger.error(getMessageString(entry), getException(entry));
          }
          else {
            logger.error(getMessageString(entry));
          }
        }
View Full Code Here

        if (logger.isErrorEnabled()) {
          if (entry.hasException()) {
            logger.error(getMessageString(entry), getException(entry));
          }
          else {
            logger.error(getMessageString(entry));
          }
        }
        break;
      case WARNING:
        if (logger.isWarnEnabled()) {
View Full Code Here

            }
            log.info("total byte write " + xTotalByteWrite);
            xOS.flush();
            xOS.flush();
        } catch (Exception xEx) {
            log.error(xEx.getMessage(), xEx);
            throw new IOException(xEx.getMessage());
        } finally {
            try {
                fromFo.getContent().close();
            } catch (Exception xEx) {
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.