cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [1/2] cxf-fediz git commit: Enable more verbose logging for OIDC IDP
Date Wed, 02 Dec 2015 10:37:52 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 9bbab2a88 -> 14b64887f


Enable more verbose logging for OIDC IDP


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/620b95a2
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/620b95a2
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/620b95a2

Branch: refs/heads/master
Commit: 620b95a228b3bede8846a10ed9a03338de8f50f6
Parents: 9bbab2a
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Tue Dec 1 21:20:42 2015 +0100
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Wed Dec 2 11:32:14 2015 +0100

----------------------------------------------------------------------
 .../oidc/src/main/resources/log4j.properties    | 21 ++++++++++++++++++++
 .../main/webapp/WEB-INF/applicationContext.xml  | 11 +++++++++-
 2 files changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/620b95a2/services/oidc/src/main/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/resources/log4j.properties b/services/oidc/src/main/resources/log4j.properties
new file mode 100644
index 0000000..a81ea8b
--- /dev/null
+++ b/services/oidc/src/main/resources/log4j.properties
@@ -0,0 +1,21 @@
+# Set root category priority to INFO and its only appender to CONSOLE.
+#log4j.rootCategory=FATAL, CONSOLE
+log4j.rootCategory=INFO, CONSOLE, LOGFILE
+log4j.logger.org.apache.cxf.fediz.service.oidc=DEBUG, CONSOLE, LOGFILE
+log4j.additivity.org.apache.cxf.fediz.service.oidc = false
+log4j.logger.org.springframework.security=DEBUG, LOGFILE
+log4j.additivity.org.springframework.security = false
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Threshold=INFO
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=${catalina.base}/logs/oidc.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.Threshold=DEBUG
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/620b95a2/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
index c698c06..b5f6ae2 100644
--- a/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/services/oidc/src/main/webapp/WEB-INF/applicationContext.xml
@@ -18,14 +18,23 @@
   under the License.
 -->
 <beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:cxf="http://cxf.apache.org/core"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:jaxrs="http://cxf.apache.org/jaxrs" 
     xsi:schemaLocation="
-        http://www.springframework.org/schema/beans
+        http://cxf.apache.org/core
+        http://cxf.apache.org/schemas/core.xsd
+		http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://cxf.apache.org/jaxrs
         http://cxf.apache.org/schemas/jaxrs.xsd">
 
+	<cxf:bus>
+        <cxf:features>
+            <cxf:logging/>
+        </cxf:features>
+    </cxf:bus>
+		
     <import resource="data-manager.xml" />
     
     <bean id="oidcAuthorizationService" class="org.apache.cxf.rs.security.oidc.idp.OidcAuthorizationCodeService">


Mime
View raw message