Package org.slf4j

Examples of org.slf4j.Logger


    if (!gotValue) {
      try {
        Attribute<VALUE_TYPE> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here


    if (!gotValue) {
      try {
        Attribute<List<AssociationValue>> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here

    if (!gotValue) {
      try {
        Attribute<AssociationValue> attribute = featureModel.getAttribute(pojo, name);
        super.setValue(attribute.getValue());
      } catch (LayerException le) {
        Logger log = LoggerFactory.getLogger(LazyPrimitiveAttribute.class);
        log.error("Could not lazily get attribute " + name, le);
      }
    }
    return super.getValue();
  }
View Full Code Here

        JBossObjectInputStream deserialize = new JBossObjectInputStream(bais);
        Object obj = deserialize.readObject();
        res[i] = (BaseAuthorization) obj;
      }
    } catch (ClassNotFoundException cnfe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", cnfe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
    } catch (IOException ioe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Can not deserialize object, may cause rights to be lost.", ioe);
      res = new BaseAuthorization[0]; // assure empty list, otherwise risk of NPE
    }
    return res;
  }
View Full Code Here

        serialize.flush();
        serialize.close();
        this.authorizations[i] = baos.toByteArray();
      }
    } catch (IOException ioe) {
      Logger log = LoggerFactory.getLogger(SavedAuthenticationImpl.class);
      log.error("Could not serialize " + ba + ", may cause rights to be lost.", ioe);
    }
  }
View Full Code Here

    }
    if (store == null) {
      StringBuilder availableStr = new StringBuilder();
      StringBuilder missingStr = new StringBuilder();
      Iterator<DataStoreFactorySpi> all = DataStoreFinder.getAllDataStores();
      Logger log = LoggerFactory.getLogger(DataStoreFactory.class);
      while (all.hasNext()) {
        DataStoreFactorySpi factory = all.next();
        if (!factory.isAvailable()) {
          log.warn("Datastore factory " + factory.getDisplayName() + "(" + factory.getDescription()
              + ") is not available");
          if (missingStr.length() != 0) {
            missingStr.append(",");
          }
          missingStr.append(factory.getDisplayName());
View Full Code Here

        try {
          write(JSONObject.quote(s));
          write(':');
          writeObject(o);
        } catch (IOException ioe) {
          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + " from " + object + " for value " + o + ", " + ioe.getMessage());
          throw ioe;
        } catch (ArithmeticException ae) {
          Logger log = LoggerFactory.getLogger(JsonObjectWriter.class);
          log.error("Problem writing " + s + ", " + ae.getMessage());
          throw ae;
        }
      }
    }
    write('}');
View Full Code Here

    public void render(MarkupWriter writer)
    {
        String name = "tapestry.render." + page.getLogger().getName();

        Logger logger = loggerSource.getLogger(name);

        RenderQueueImpl queue = new RenderQueueImpl(logger);

        queue.push(rootCommand);
View Full Code Here

        // Inside Maven Surefire, the system classpath is not sufficient to find all
        // the necessary files.
        classFactoryClassPool.appendClassPath(new LoaderClassPath(loader));

        Logger logger = LoggerFactory.getLogger(InternalClassTransformationImplTest.class);

        classFactory = new ClassFactoryImpl(loader, classFactoryClassPool, logger);

        classSource = new CtClassSourceImpl(classFactoryClassPool, loader);
    }
View Full Code Here

    {
        InternalComponentResources resources = mockInternalComponentResources();

        CtClass targetObjectCtClass = findCtClass(componentClass);

        Logger logger = mockLogger();
        MutableComponentModel model = mockMutableComponentModel(logger);

        replay();

        InternalClassTransformation ct = new InternalClassTransformationImpl(classFactory, targetObjectCtClass,
View Full Code Here

TOP

Related Classes of org.slf4j.Logger

Copyright © 2018 www.massapicom. 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.