Uploaded image for project: 'Logging analytics'
  1. Logging analytics
  2. LOG-118 Add Logging Reference Impl example and AOP wrapper on Logging library
  3. LOG-153

Logging RI: Add Eclipse .classpath and .project structure required to debug WAR in IDE

XMLWordPrintable

    • LOG Sprint 8, LOG Sprint 10, Dublin-Logging

      http://localhost:8988/logging-demo/rest/read/test

      Tested on STS - SpringSource Tool Suite 3.9.2  (Eclipse 4.7.2 Oxygen) on 1.8.0_153 and Tomcat 8.5

      and a breakpoint at 

      @GET
      
      @Path("/test")
      
      @Produces(MediaType.TEXT_HTML)
      
      public String getTest() {
      
      return "testing: " + applicationServiceLocal;
      
      }
      
      INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
      18:36:57.007 [localhost-startStop-1] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
      18:36:57.012 [localhost-startStop-1] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.2.Final
      18:36:57.019 [localhost-startStop-1] DEBUG o.h.v.i.e.r.DefaultTraversableResolver - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
      18:36:57.028 [localhost-startStop-1] DEBUG o.h.v.i.engine.ConfigurationImpl - Setting custom MessageInterpolator of type org.springframework.validation.beanvalidation.LocaleContextMessageInterpolator
      18:36:57.029 [localhost-startStop-1] DEBUG o.h.v.i.engine.ConfigurationImpl - Setting custom ConstraintValidatorFactory of type org.springframework.validation.beanvalidation.SpringConstraintValidatorFactory
      18:36:57.030 [localhost-startStop-1] DEBUG o.h.v.i.engine.ConfigurationImpl - Setting custom ParameterNameProvider of type com.sun.proxy.$Proxy20
      18:36:57.035 [localhost-startStop-1] DEBUG o.h.v.i.xml.ValidationXmlParser - Trying to load META-INF/validation.xml for XML based Validator configuration.
      18:36:57.042 [localhost-startStop-1] DEBUG o.h.v.i.xml.ValidationXmlParser - No META-INF/validation.xml found. Using annotation based configuration only.
      Jan 21, 2018 6:36:57 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
      INFO: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Sun Jan 21 18:36:55 EST 2018]; root of context hierarchy
      Jan 21, 2018 6:36:57 PM org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter initControllerAdviceCache
      INFO: Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Sun Jan 21 18:36:55 EST 2018]; root of context hierarchy
      Jan 21, 2018 6:36:57 PM org.springframework.web.context.ContextLoader initWebApplicationContext
      INFO: Root WebApplicationContext: initialization completed in 1724 ms
      Jan 21, 2018 6:36:58 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-nio-8988"]
      Jan 21, 2018 6:36:58 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-nio-8009"]
      Jan 21, 2018 6:36:58 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 9074 ms
      obrienbiometrics:reference michaelobrien$ git status
      
      On branch master
      
      Your branch is up-to-date with 'origin/master'.
      
      Changes to be committed:
      
        (use "git reset HEAD <file>..." to unstage)
      
      
      
      renamed:    logging-demo/src/main/java/org/onap/logging/ApplicationService.java -> logging-demo/src/main/java/org/onap/demo/logging/ApplicationService.java
      
      renamed:    logging-demo/src/main/java/org/onap/logging/ApplicationServiceLocal.java -> logging-demo/src/main/java/org/onap/demo/logging/ApplicationServiceLocal.java
      
      renamed:    logging-demo/src/main/java/org/onap/logging/RestApplication.java -> logging-demo/src/main/java/org/onap/demo/logging/RestApplication.java
      
      renamed:    logging-demo/src/main/java/org/onap/logging/RestHealthServiceImpl.java -> logging-demo/src/main/java/org/onap/demo/logging/RestHealthServiceImpl.java
      
      renamed:    logging-demo/src/main/java/org/onap/logging/RestServiceImpl.java -> logging-demo/src/main/java/org/onap/demo/logging/RestServiceImpl.java
      
      renamed:    logging-library/src/main/java/org/onap/logging/LoggingReference.java -> logging-library/src/main/java/org/onap/logging/library/LoggingReference.java
      
      
      
      Changes not staged for commit:
      
        (use "git add <file>..." to update what will be committed)
      
        (use "git checkout -- <file>..." to discard changes in working directory)
      
      
      
      modified:   logging-demo/src/main/java/org/onap/demo/logging/ApplicationService.java
      
      modified:   logging-demo/src/main/java/org/onap/demo/logging/ApplicationServiceLocal.java
      
      modified:   logging-demo/src/main/java/org/onap/demo/logging/RestApplication.java
      
      modified:   logging-demo/src/main/java/org/onap/demo/logging/RestHealthServiceImpl.java
      
      modified:   logging-demo/src/main/java/org/onap/demo/logging/RestServiceImpl.java
      
      modified:   logging-demo/src/main/webapp/WEB-INF/spring.xml
      
      modified:   logging-demo/src/main/webapp/WEB-INF/web.xml
      
      modified:   logging-library/src/main/java/org/onap/logging/library/LoggingReference.java
      
      
      
      Untracked files:
      
        (use "git add <file>..." to include in what will be committed)
      
      
      
      .classpath
      
      .project
      
      .settings/
      
      logging-demo/.checkstyle
      
      logging-demo/.classpath
      
      logging-demo/.project
      
      logging-demo/.settings/
      
      logging-library/.checkstyle
      
      logging-library/.classpath
      
      logging-library/.project
      
      logging-library/.settings/
      
      logging-mock-service/.checkstyle
      
      logging-mock-service/.classpath
      
      logging-mock-service/.project
      
      logging-mock-service/.settings/

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h