Package mx4j.log

Examples of mx4j.log.Logger.error()


               {
                  log.warn("JMException during http request", e);
               }
               catch (RuntimeException rte)
               {
                  log.error("RuntimeException during http request", rte);
               }
               catch (Error er)
               {
                  log.error("Error during http request ", er);
               }
View Full Code Here


               {
                  log.error("RuntimeException during http request", rte);
               }
               catch (Error er)
               {
                  log.error("Error during http request ", er);
               }
               catch (Throwable t)
               {
                  log.fatal("Throwable during http request ", t);
               }
View Full Code Here

               }
            }
         }
         catch (Error ex)
         {
            log.error("Error during http request ", ex);
         }
         finally
         {
            try
            {
View Full Code Here

            transformer.transform(new DOMSource(document), new StreamResult(output));
            output.writeTo(out);
         }
         catch (TransformerException e)
         {
            log.error("Transformation exception ", e);
         }
      }
      else
      {
         log.warn("Transformer for path " + path + " not found");
View Full Code Here

            }
         }
      }
      catch (TransformerConfigurationException e)
      {
         logger.error("Exception during XSL template construction", e);
      }
      return null;
   }

   protected void processHttpException(HttpInputStream in, HttpOutputStream out, HttpException e) throws IOException
View Full Code Here

            output.writeTo(out);
         }
         catch (TransformerException ex)
         {
            Logger log = getLogger();
            log.error("Exception during error output", ex);
         }
      }
   }

   public void writeError(HttpOutputStream out, HttpInputStream in, Exception e) throws IOException
View Full Code Here

            file = new FileInputStream(new File(this.root, path));
         }
         catch (FileNotFoundException e)
         {
            Logger log = getLogger();
            log.error("File not found", e);
         }
      }
      else
      {
         // load from a jar
View Full Code Here

         return serverSocket;
      }
      catch (IOException x)
      {
         logger.error("", x);
         throw x;
      }
      catch (UnrecoverableKeyException x)
      {
         // Wrong password for the key
View Full Code Here

         throw x;
      }
      catch (UnrecoverableKeyException x)
      {
         // Wrong password for the key
         logger.error("Probably a bad key password", x);
         throw new IOException("Probably a bad key password: " + x.toString());
      }
      catch (Exception x)
      {
         logger.error("Unexpected exception", x);
View Full Code Here

         logger.error("Probably a bad key password", x);
         throw new IOException("Probably a bad key password: " + x.toString());
      }
      catch (Exception x)
      {
         logger.error("Unexpected exception", x);
         throw new IOException(x.toString());
      }
   }

   private Logger getLogger()
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.