Package java.util.logging

Examples of java.util.logging.Logger.severe()


                        }  
                        InputStream stream = ectx.getResourceAsStream(systemId);
                        if (stream == null)
                        {
                           
                            log.severe("Faces config resource " + systemId + " not found");
                            continue;
                        }
           
                        if (log.isLoggable(Level.INFO))
                        {
View Full Code Here


      transformation.transform();
      if (logHandler != null){
        logHandler.close();
      }
    } catch (ArrayIndexOutOfBoundsException e) {
      logger.severe(nbArgs + " program argument(s) are mandatory.");
    } catch (Exception e) {
      logger.log(Level.SEVERE, "Unkown error", e);
    }
  }
 
View Full Code Here

      transformation.transform();
      if (logHandler != null){
        logHandler.close();
      }
    } catch (ArrayIndexOutOfBoundsException e) {
      logger.severe(nbArgs + " program argument(s) are mandatory.");
    } catch (Exception e) {
      logger.log(Level.SEVERE, "Unkown error", e);
    }
  }
 
View Full Code Here

        }

        // If there is an output folder, ensure it exists.
        if (outputFolder != null && !outputFolder.isDirectory()) {
            if (!FileSystemHelper.ensureDirectoryExists(outputFolder)) {
                commandLineLogger.severe("Output folder \'" + outputFolder.getPath() + "\' does not exist, and could not be created.");
                return;
            }
        }
       
        JFit jfit = new JFit(commandLineOptions, commandLineLogger);
View Full Code Here

                    /// We only generate the documentation if everything compiled properly without errors
                    //
                    CALDocTool.run(workspaceManager, config);
                   
                } else {
                    logger.severe("Compilation failed:");
                    List<CompilerMessage> messages = msgLogger.getCompilerMessages();
                    for (int i = 0, n = messages.size(); i < n; i++) {
                        logger.info("  " + messages.get(i).toString());
                    }
                }
View Full Code Here

  public void logMessage(PrefixType type, String msg) {
    Logger logger = Bukkit.getServer().getLogger();
    switch (type) {
    case INFO:  logger.info(prefix.get(type)+ msg); break;
    case WARNING: logger.warning(prefix.get(type) + msg); break;
    case ERROR: logger.severe(prefix.get(type) + msg); break;
    default:
      break;
    }
  }
 
View Full Code Here

                // loaded for some reason
                URI uri = null;
                try {
                    uri = new URI(application.getLocation());
                } catch (URISyntaxException e) {
                    logger.severe("Cannot determine original location for application : " + e.getMessage());
                }
                if (uri != null) {
                    File location = new File(uri);
                    if (location.exists()) {
                        try {
View Full Code Here

                            ExceptionQueuedEventContext equecontext = new ExceptionQueuedEventContext (context, e, null);
                            context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                           
                            Logger log = Logger.getLogger(ResourceImpl.class.getName());
                            if (log.isLoggable(Level.SEVERE))
                                log.severe("Cannot evaluate EL expression "+convertToExpression(expressionList)+ " in resource " + getLibraryName()+":"+getResourceName());
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
                            {
                                delegate.unread(expressionList.get(i));
View Full Code Here

                            ExceptionQueuedEventContext equecontext = new ExceptionQueuedEventContext (context, e, null);
                            context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                           
                            Logger log = Logger.getLogger(ResourceImpl.class.getName());
                            if (log.isLoggable(Level.SEVERE))
                                log.severe("Cannot evaluate EL expression "+convertToExpression(expressionList)+ " in resource " + getLibraryName()+":"+getResourceName());
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
                            {
                                delegate.unread(expressionList.get(i));
View Full Code Here

                            ExceptionQueuedEventContext equecontext = new ExceptionQueuedEventContext (context, e, null);
                            context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                           
                            Logger log = Logger.getLogger(ResourceImpl.class.getName());
                            if (log.isLoggable(Level.SEVERE))
                                log.severe("Cannot evaluate EL expression "+convertToExpression(expressionList)+ " in resource " + getLibraryName()+":"+getResourceName());
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
                            {
                                delegate.unread(expressionList.get(i));
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.