minor changes to logging output

Sun, 01 Apr 2018 18:25:31 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 01 Apr 2018 18:25:31 +0200
changeset 22
5a91fb7067af
parent 21
b213fef2539e
child 23
a7d3e5921cce

minor changes to logging output

src/java/de/uapcore/lightpit/AbstractLightPITServlet.java file | annotate | diff | comparison | revisions
src/java/de/uapcore/lightpit/ModuleManager.java file | annotate | diff | comparison | revisions
src/java/log4j2.properties file | annotate | diff | comparison | revisions
--- a/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sun Apr 01 18:16:47 2018 +0200
+++ b/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sun Apr 01 18:25:31 2018 +0200
@@ -163,9 +163,10 @@
                             );
                         }
 
-                        LOG.info("{} {} maps to {}",
+                        LOG.debug("{} {} maps to {}::{}",
                                 mapping.get().method(),
                                 requestPath,
+                                getClass().getSimpleName(),
                                 method.getName()
                         );
                     } else {
--- a/src/java/de/uapcore/lightpit/ModuleManager.java	Sun Apr 01 18:16:47 2018 +0200
+++ b/src/java/de/uapcore/lightpit/ModuleManager.java	Sun Apr 01 18:25:31 2018 +0200
@@ -32,7 +32,6 @@
 import de.uapcore.lightpit.entities.ModuleDao;
 import java.sql.Connection;
 import java.sql.SQLException;
-import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
 import java.util.List;
@@ -183,7 +182,7 @@
                 LOG.warn("No datasource present. Cannot sync module information with database.");
             }
         } else {
-            LOG.debug("Module information clean - no synchronization required.");
+            LOG.trace("Module information clean - no synchronization required.");
         }
     }
     
--- a/src/java/log4j2.properties	Sun Apr 01 18:16:47 2018 +0200
+++ b/src/java/log4j2.properties	Sun Apr 01 18:25:31 2018 +0200
@@ -29,7 +29,7 @@
 appender.console.type = Console
 appender.console.name = STDOUT
 appender.console.layout.type = PatternLayout
-appender.console.layout.pattern = %d{ISO8601} [%p] %m %n
+appender.console.layout.pattern = %d{ISO8601} [%highlight{%p}] %c{1}: %m %n
  
 rootLogger.appenderRef.stdout.ref = STDOUT
 

mercurial