Less verbose, but easily configurable debug output
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 09 May 2013 10:32:08 +0200
changeset 7159b6a8d5f11b
parent 70 450a456930cb
child 72 c00bc21c664a
Less verbose, but easily configurable debug output
json/src/main/java/org/apidesign/html/json/impl/ModelProcessor.java
     1.1 --- a/json/src/main/java/org/apidesign/html/json/impl/ModelProcessor.java	Thu May 09 09:14:10 2013 +0200
     1.2 +++ b/json/src/main/java/org/apidesign/html/json/impl/ModelProcessor.java	Thu May 09 10:32:08 2013 +0200
     1.3 @@ -39,6 +39,7 @@
     1.4  import java.util.ResourceBundle;
     1.5  import java.util.Set;
     1.6  import java.util.WeakHashMap;
     1.7 +import java.util.logging.Level;
     1.8  import java.util.logging.Logger;
     1.9  import javax.annotation.processing.AbstractProcessor;
    1.10  import javax.annotation.processing.Completion;
    1.11 @@ -1269,11 +1270,12 @@
    1.12  
    1.13      @Override
    1.14      public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) {
    1.15 -        LOG.info(" element: " + element);
    1.16 -        LOG.info(" annotation: " + annotation);
    1.17 -        LOG.info(" member: " + member);
    1.18 -        LOG.info(" userText: " + userText);
    1.19 -        LOG.info("str: " + annotation.getAnnotationType().toString());
    1.20 +        final Level l = Level.FINE;
    1.21 +        LOG.log(l, " element: {0}", element);
    1.22 +        LOG.log(l, " annotation: {0}", annotation);
    1.23 +        LOG.log(l, " member: {0}", member);
    1.24 +        LOG.log(l, " userText: {0}", userText);
    1.25 +        LOG.log(l, "str: {0}", annotation.getAnnotationType().toString());
    1.26          if (annotation.getAnnotationType().toString().equals(OnReceive.class.getName())) {
    1.27              if (member.getSimpleName().contentEquals("method")) {
    1.28                  return Arrays.asList(