Package mx4j.log

Examples of mx4j.log.Logger.warn()


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


                  httpOut.flush();
               }
            }
            catch (IOException e)
            {
               log.warn("Exception during request processing", e);
            }
            finally
            {
               try
               {
View Full Code Here

            log.error("Transformation exception ", e);
         }
      }
      else
      {
         log.warn("Transformer for path " + path + " not found");
      }
   }

   protected Transformer createTransformer(String path)
   {
View Full Code Here

      String name = file.getName();
      int extensionIndex = name.lastIndexOf('.');
      String mime = null;
      if (extensionIndex < 0)
      {
         log.warn("Filename has no extensions " + file.toString());
         mime = "text/plain";
      }
      else
      {
         String extension = name.substring(extensionIndex, name.length());
View Full Code Here

         {
            mime = (String)mimeTypes.get(extension);
         }
         else
         {
            log.warn("MIME type not found " + extension);
            mime = "text/plain";
         }
      }
      try
      {
View Full Code Here

         outArray.writeTo(out);
         fileIn.close();
      }
      catch (Exception e)
      {
         log.warn("Exception loading file " + file, e);
         throw new HttpException(HttpConstants.STATUS_NOT_FOUND, "file " + file + " not found");
      }
      return null;
   }
View Full Code Here

         Logger log = getLogger();

         File target = new File(file);
         if (!target.exists())
         {
            log.warn("Target file " + file + " does not exist, defaulting to previous");
            return;
         }
         if (target.isDirectory())
         {
            useJar = false;
View Full Code Here

               this.root = target;
               useJar = true;
            }
            catch (MalformedURLException e)
            {
               log.warn("Unable to create class loader", e);
            }
         }
         else
         {
            log.warn("Target file " + file + " does not exist, defaulting to previous");
View Full Code Here

               log.warn("Unable to create class loader", e);
            }
         }
         else
         {
            log.warn("Target file " + file + " does not exist, defaulting to previous");
         }
      }
   }

   public String getFile()
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.