Package java.util.logging

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


        Logger logger = Logger.getLogger(channel);
        Level level = getLevelForSlideLevel(slideLevel);
        if (data instanceof Throwable) {
            logger.log(level, data.toString(), (Throwable) data);
        } else {
            logger.log(level, data.toString());
        }
    }

    public void log(Object data, int level) {
        this.log(data, DEFAULT_CHANNEL, level);
View Full Code Here


           
            if (field.getBoolean(null))
            {
                Logger log = Logger.getLogger(FactoryFinderProviderFactory.class.getName());
                if (log.isLoggable(Level.WARNING))
                    log.log(Level.WARNING,
                            "Called FactoryFinderProviderFactory.setFactory after " +
                            "initialized FactoryFinder (first call to getFactory() or setFactory()). " +
                            "This method should be called before " +
                            "any 'web context' is initialized in the current 'classloader context'. " +
                            "By that reason it will not be changed.");
View Full Code Here

        catch (Exception e)
        {
            // No Op
            Logger log = Logger.getLogger(FactoryFinderProviderFactory.class.getName());
            if (log.isLoggable(Level.FINE))
                log.log(Level.FINE, "Cannot access field _initialized"
                        + "from FactoryFinder ", e);
        }
    }
   
    /**
 
View Full Code Here

  @Override
  public void log(LogRecord record) {
    String category = record.getCategory();
    Logger log = category != null ? Logger.getLogger(category) : logger;
    log.log(mapGWTLogLevelToImplLevelObject(record.getLevel()), record.getMessage(),
        record.getThrowable());
  }

  @Override
  public int mapGWTLogLevelToImplLevel(int gwtLogLevel) {
View Full Code Here

  }

  public void loadAnimations() {
    this.animationlistlock.lock();
    Logger logger = plugin.getServer().getLogger();
    logger.log(Level.FINE, "BlockAnimationPlugin: Loading animations");
    Animation[] animations = xml.getAnimations();
    for (Animation animation : animations) {
      this.animations.add(animation);
//      Block[] blocks = xml.getBlocks(animation);
//      for (Block blockgroup : blocks) {
View Full Code Here

      this.animations.add(animation);
//      Block[] blocks = xml.getBlocks(animation);
//      for (Block blockgroup : blocks) {
//        animation.addBlock(blockgroup);
//      }
      logger.log(Level.FINE, "BlockAnimationPlugin: " + animation.getName() + " loaded");
    }
    this.animationlistlock.unlock();
  }

  public void saveAnimations() {
View Full Code Here

            // open it
            try {

                inputStream = new FileImageInputStream(file);
            } catch (FileNotFoundException ex) {
                logger.log(Level.SEVERE, null, ex);
                showError("File not found " + ex);
            } catch (IOException ex) {
                logger.log(Level.SEVERE, null, ex);
                showError("IOException " + ex);
            }
View Full Code Here

                inputStream = new FileImageInputStream(file);
            } catch (FileNotFoundException ex) {
                logger.log(Level.SEVERE, null, ex);
                showError("File not found " + ex);
            } catch (IOException ex) {
                logger.log(Level.SEVERE, null, ex);
                showError("IOException " + ex);
            }
            try {
                bi = ImageIO.read(inputStream);
            } catch (IOException ex) {
View Full Code Here

                showError("IOException " + ex);
            }
            try {
                bi = ImageIO.read(inputStream);
            } catch (IOException ex) {
                logger.log(Level.SEVERE, null, ex);
                showError("IOException " + ex);
            }

            itModel.setImage(bi);
View Full Code Here

                job.setPrintable(cp, pf);
                job.print(attributes);
            } catch (PrinterException ex) {
                /* The job did not successfully complete */
                Logger logger = Logger.getLogger(ImageToolsView.class.getName());
                logger.log(Level.SEVERE, null, ex);
                showError("The print job did not complete " + ex);
            }
        }
    }

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.