Package org.bladerunnerjs.logging

Examples of org.bladerunnerjs.logging.Logger.debug()


  public static ResponseContent handle(BundleSet bundleSet, String logicalRequestpath, UrlContentAccessor contentAccessor, String version) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException {
    BundlableNode bundlableNode = bundleSet.getBundlableNode();
    App app = bundlableNode.app();
    Logger logger = app.root().logger(BundleSetRequestHandler.class);
   
    logger.debug(Messages.REQUEST_HANDLED_MSG, logicalRequestpath, app.getName());
   
    String name = (bundlableNode instanceof NamedNode) ? ((NamedNode) bundlableNode).getName() : "default";
    logger.debug(Messages.CONTEXT_IDENTIFIED_MSG, bundlableNode.getTypeName(), name, logicalRequestpath);
   
    ContentPlugin contentProvider = app.root().plugins().contentPluginForLogicalPath(logicalRequestpath);
View Full Code Here


    Logger logger = app.root().logger(BundleSetRequestHandler.class);
   
    logger.debug(Messages.REQUEST_HANDLED_MSG, logicalRequestpath, app.getName());
   
    String name = (bundlableNode instanceof NamedNode) ? ((NamedNode) bundlableNode).getName() : "default";
    logger.debug(Messages.CONTEXT_IDENTIFIED_MSG, bundlableNode.getTypeName(), name, logicalRequestpath);
   
    ContentPlugin contentProvider = app.root().plugins().contentPluginForLogicalPath(logicalRequestpath);
   
    if(contentProvider == null) {
      throw new ResourceNotFoundException("No content provider could be found found the logical request path '" + logicalRequestpath + "'");
View Full Code Here

   
    if(contentProvider == null) {
      throw new ResourceNotFoundException("No content provider could be found found the logical request path '" + logicalRequestpath + "'");
    }
   
    logger.debug(Messages.BUNDLER_IDENTIFIED_MSG, contentProvider.getPluginClass().getSimpleName(), logicalRequestpath);
   
    ParsedContentPath contentPath = contentProvider.getContentPathParser().parse(logicalRequestpath);
    return contentProvider.handleRequest(contentPath, bundleSet, contentAccessor, version);
  }
}
View Full Code Here

    for(DriverFactory driverFactory : driverFactories)
    {
      if(driverFactory.canHandleBrowser(browserName))
      {
        File browserPath = getBrowserPathFromConf(browserName);
        logger.debug("using '" + browserName + "' browser ('" + browserPath + "')");
       
        driver = driverFactory.createDriver(browserPath, driverOptions);
      }
    }
   
View Full Code Here

    BundleSetBuilder bundleSetBuilder = new BundleSetBuilder(bundlableNode);
    List<LinkedAsset> seedFiles = bundlableNode.seedAssets();
   
    String name = (bundlableNode instanceof NamedNode) ? ((NamedNode) bundlableNode).getName() : "default";
    if(seedFiles.isEmpty()) {
      logger.debug(Messages.BUNDLABLE_NODE_HAS_NO_SEED_FILES_MSG, bundlableNode.getTypeName(), name);
    }
    else {
      logger.debug(Messages.BUNDLABLE_NODE_SEED_FILES_MSG, bundlableNode.getTypeName(), name, seedFilePaths(bundlableNode, seedFiles));
    }
   
View Full Code Here

    String name = (bundlableNode instanceof NamedNode) ? ((NamedNode) bundlableNode).getName() : "default";
    if(seedFiles.isEmpty()) {
      logger.debug(Messages.BUNDLABLE_NODE_HAS_NO_SEED_FILES_MSG, bundlableNode.getTypeName(), name);
    }
    else {
      logger.debug(Messages.BUNDLABLE_NODE_SEED_FILES_MSG, bundlableNode.getTypeName(), name, seedFilePaths(bundlableNode, seedFiles));
    }
   
    logger.debug(Messages.APP_SOURCE_LOCATIONS_MSG, bundlableNode.app().getName(), assetContainerPaths(bundlableNode.app()));
   
    bundleSetBuilder.addSeedFiles(seedFiles);
View Full Code Here

    }
    else {
      logger.debug(Messages.BUNDLABLE_NODE_SEED_FILES_MSG, bundlableNode.getTypeName(), name, seedFilePaths(bundlableNode, seedFiles));
    }
   
    logger.debug(Messages.APP_SOURCE_LOCATIONS_MSG, bundlableNode.app().getName(), assetContainerPaths(bundlableNode.app()));
   
    bundleSetBuilder.addSeedFiles(seedFiles);
   
    return bundleSetBuilder.createBundleSet();
  }
View Full Code Here

      if(this instanceof NamedNode) ((NamedNode) this).assertValidName();
     
      try {
        FileUtils.forceMkdir(dir);
        notifyObservers(new NodeCreatedEvent(), this);
        logger.debug(Messages.NODE_CREATED_LOG_MSG, getTypeName(), dir().getPath());
       
        rootNode.getFileInfo(dir()).resetLastModified();
      }
      catch(IOException e) {
        throw new ModelUpdateException(e);
View Full Code Here

   
    try {
      if(this instanceof NamedNode) ((NamedNode) this).assertValidName();
     
      notifyObservers(new NodeCreatedEvent(), this);
      logger.debug(Messages.NODE_CREATED_LOG_MSG, getTypeName(), dir().getPath());
       
      rootNode.getFileInfo(dir().getParentFile()).resetLastModified();
    }
    catch(Exception e) {
      logger.error(Messages.NODE_CREATION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
View Full Code Here

    try {
      if(!dirExists()) throw new NoSuchDirectoryException(this);
     
      try {
        FileUtils.deleteDirectory(dir);
        logger.debug(Messages.NODE_DELETED_LOG_MSG, getTypeName(), dir.getPath());
        notifyObservers(new NodeDeletedEvent(), this);
      }
      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
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.