Package org.apache.avalon.framework.logger

Examples of org.apache.avalon.framework.logger.Logger.error()


        mockLog.expects(once()).method("error").with(eq("JUnit"));
        mockLog.expects(once()).method("error").with(eq("JUnit"), same(exception));

        if(logger.isErrorEnabled())
        {
            logger.error("JUnit");
            logger.error("JUnit", exception);
        }
    }

    /**
 
View Full Code Here


        mockLog.expects(once()).method("error").with(eq("JUnit"), same(exception));

        if(logger.isErrorEnabled())
        {
            logger.error("JUnit");
            logger.error("JUnit", exception);
        }
    }

    /**
     * Test fatal error level.
View Full Code Here

      // Perform the search
      Matcher pm = pattern.matcher(cb); // Pattern matcher

      result = pm.find();
    } catch (FileNotFoundException e) {
      log.error("File not found: " +e.toString());
    } catch (CharacterCodingException e) {
      log.error("Problem with encoding: " +e.toString());
    } catch (IOException e) {
      log.error("IO Exception: " +e.toString());
    } finally {
View Full Code Here

      result = pm.find();
    } catch (FileNotFoundException e) {
      log.error("File not found: " +e.toString());
    } catch (CharacterCodingException e) {
      log.error("Problem with encoding: " +e.toString());
    } catch (IOException e) {
      log.error("IO Exception: " +e.toString());
    } finally {
          // Close the channel and the stream
          if (fc != null)
View Full Code Here

    } catch (FileNotFoundException e) {
      log.error("File not found: " +e.toString());
    } catch (CharacterCodingException e) {
      log.error("Problem with encoding: " +e.toString());
    } catch (IOException e) {
      log.error("IO Exception: " +e.toString());
    } finally {
          // Close the channel and the stream
          if (fc != null)
              fc.close();
          if (fis != null)
View Full Code Here

            while (pm.find()) {
                occurences.add(pm.group(group));
            }
        } catch (FileNotFoundException e) {
            log.error("file not found " +e.toString());
        } catch (CharacterCodingException e) {
            log.error("encoding problem " +e.toString());
        } catch (IOException e) {
            log.error("IO exception" +e.toString());
        } finally {
View Full Code Here

                occurences.add(pm.group(group));
            }
        } catch (FileNotFoundException e) {
            log.error("file not found " +e.toString());
        } catch (CharacterCodingException e) {
            log.error("encoding problem " +e.toString());
        } catch (IOException e) {
            log.error("IO exception" +e.toString());
        } finally {
          // Close the channel and the stream
          if (fc != null)
View Full Code Here

        } catch (FileNotFoundException e) {
            log.error("file not found " +e.toString());
        } catch (CharacterCodingException e) {
            log.error("encoding problem " +e.toString());
        } catch (IOException e) {
            log.error("IO exception" +e.toString());
        } finally {
          // Close the channel and the stream
          if (fc != null)
              fc.close();
          if (fis != null)
View Full Code Here

     */
    public void dumpError(Exception e) {
        if (_errorDump) {
            Logger log = getLogger();
            if (e instanceof SAXException) {
                log.error("", e);
                if (((SAXException)e).getException() != null) {
                    log.error("", ((SAXException)e).getException());
                }
            } else if (e instanceof FOPException) {
                e.printStackTrace();
View Full Code Here

        if (_errorDump) {
            Logger log = getLogger();
            if (e instanceof SAXException) {
                log.error("", e);
                if (((SAXException)e).getException() != null) {
                    log.error("", ((SAXException)e).getException());
                }
            } else if (e instanceof FOPException) {
                e.printStackTrace();
                if (((FOPException)e).getException() != null) {
                    log.error("", ((FOPException)e).getException());
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.