diff --git a/samples/javaconfig/concurrency/spring-security-samples-javaconfig-concurrency.gradle b/samples/javaconfig/concurrency/spring-security-samples-javaconfig-concurrency.gradle
index 7a8e417d8e..db52c5f523 100644
--- a/samples/javaconfig/concurrency/spring-security-samples-javaconfig-concurrency.gradle
+++ b/samples/javaconfig/concurrency/spring-security-samples-javaconfig-concurrency.gradle
@@ -18,3 +18,7 @@ dependencies {
runtime 'ch.qos.logback:logback-classic'
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/form/spring-security-samples-javaconfig-form.gradle b/samples/javaconfig/form/spring-security-samples-javaconfig-form.gradle
index 3dee895966..febffd29d4 100644
--- a/samples/javaconfig/form/spring-security-samples-javaconfig-form.gradle
+++ b/samples/javaconfig/form/spring-security-samples-javaconfig-form.gradle
@@ -38,3 +38,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/hellojs/spring-security-samples-javaconfig-hellojs.gradle b/samples/javaconfig/hellojs/spring-security-samples-javaconfig-hellojs.gradle
index 86700d410d..2b8fb620c6 100644
--- a/samples/javaconfig/hellojs/spring-security-samples-javaconfig-hellojs.gradle
+++ b/samples/javaconfig/hellojs/spring-security-samples-javaconfig-hellojs.gradle
@@ -18,3 +18,7 @@ dependencies {
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/hellomvc/spring-security-samples-javaconfig-hellomvc.gradle b/samples/javaconfig/hellomvc/spring-security-samples-javaconfig-hellomvc.gradle
index 3074d45935..aa58727557 100644
--- a/samples/javaconfig/hellomvc/spring-security-samples-javaconfig-hellomvc.gradle
+++ b/samples/javaconfig/hellomvc/spring-security-samples-javaconfig-hellomvc.gradle
@@ -20,3 +20,7 @@ dependencies {
testCompile project(':spring-security-test')
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/helloworld/spring-security-samples-javaconfig-helloworld.gradle b/samples/javaconfig/helloworld/spring-security-samples-javaconfig-helloworld.gradle
index 6d3e843624..cbb48aac21 100644
--- a/samples/javaconfig/helloworld/spring-security-samples-javaconfig-helloworld.gradle
+++ b/samples/javaconfig/helloworld/spring-security-samples-javaconfig-helloworld.gradle
@@ -27,3 +27,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/inmemory/spring-security-samples-javaconfig-inmemory.gradle b/samples/javaconfig/inmemory/spring-security-samples-javaconfig-inmemory.gradle
index 3074d45935..aa58727557 100644
--- a/samples/javaconfig/inmemory/spring-security-samples-javaconfig-inmemory.gradle
+++ b/samples/javaconfig/inmemory/spring-security-samples-javaconfig-inmemory.gradle
@@ -20,3 +20,7 @@ dependencies {
testCompile project(':spring-security-test')
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/jdbc/spring-security-samples-javaconfig-jdbc.gradle b/samples/javaconfig/jdbc/spring-security-samples-javaconfig-jdbc.gradle
index e3ff16ce6a..caf884deef 100644
--- a/samples/javaconfig/jdbc/spring-security-samples-javaconfig-jdbc.gradle
+++ b/samples/javaconfig/jdbc/spring-security-samples-javaconfig-jdbc.gradle
@@ -39,3 +39,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/ldap/spring-security-samples-javaconfig-ldap.gradle b/samples/javaconfig/ldap/spring-security-samples-javaconfig-ldap.gradle
index 1fc70cb879..211b940198 100644
--- a/samples/javaconfig/ldap/spring-security-samples-javaconfig-ldap.gradle
+++ b/samples/javaconfig/ldap/spring-security-samples-javaconfig-ldap.gradle
@@ -37,3 +37,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/messages/spring-security-samples-javaconfig-messages.gradle b/samples/javaconfig/messages/spring-security-samples-javaconfig-messages.gradle
index 43c2f49ac2..312b956a65 100644
--- a/samples/javaconfig/messages/spring-security-samples-javaconfig-messages.gradle
+++ b/samples/javaconfig/messages/spring-security-samples-javaconfig-messages.gradle
@@ -29,3 +29,7 @@ dependencies {
providedCompile 'javax.servlet:javax.servlet-api'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/openid/spring-security-samples-javaconfig-openid.gradle b/samples/javaconfig/openid/spring-security-samples-javaconfig-openid.gradle
index a62026e8db..3d74785924 100644
--- a/samples/javaconfig/openid/spring-security-samples-javaconfig-openid.gradle
+++ b/samples/javaconfig/openid/spring-security-samples-javaconfig-openid.gradle
@@ -20,3 +20,7 @@ dependencies {
runtime 'net.sourceforge.nekohtml:nekohtml'
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/preauth/spring-security-samples-javaconfig-preauth.gradle b/samples/javaconfig/preauth/spring-security-samples-javaconfig-preauth.gradle
index 646b6878d0..4734b4db8b 100644
--- a/samples/javaconfig/preauth/spring-security-samples-javaconfig-preauth.gradle
+++ b/samples/javaconfig/preauth/spring-security-samples-javaconfig-preauth.gradle
@@ -17,3 +17,7 @@ dependencies {
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/rememberme/spring-security-samples-javaconfig-rememberme.gradle b/samples/javaconfig/rememberme/spring-security-samples-javaconfig-rememberme.gradle
index 4d52c8ec1e..3d2295fbc8 100644
--- a/samples/javaconfig/rememberme/spring-security-samples-javaconfig-rememberme.gradle
+++ b/samples/javaconfig/rememberme/spring-security-samples-javaconfig-rememberme.gradle
@@ -17,3 +17,7 @@ dependencies {
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/saml2login/spring-security-samples-javaconfig-saml2-login.gradle b/samples/javaconfig/saml2login/spring-security-samples-javaconfig-saml2-login.gradle
index 3ca4ac602d..73015d825f 100644
--- a/samples/javaconfig/saml2login/spring-security-samples-javaconfig-saml2-login.gradle
+++ b/samples/javaconfig/saml2login/spring-security-samples-javaconfig-saml2-login.gradle
@@ -9,3 +9,7 @@ dependencies {
testCompile project(':spring-security-test')
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/javaconfig/x509/spring-security-samples-javaconfig-x509.gradle b/samples/javaconfig/x509/spring-security-samples-javaconfig-x509.gradle
index 7150dd3291..e00961574a 100644
--- a/samples/javaconfig/x509/spring-security-samples-javaconfig-x509.gradle
+++ b/samples/javaconfig/x509/spring-security-samples-javaconfig-x509.gradle
@@ -17,3 +17,7 @@ dependencies {
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/cas/cassample/spring-security-samples-xml-cassample.gradle b/samples/xml/cas/cassample/spring-security-samples-xml-cassample.gradle
index ba67be2f28..ad41a9e614 100644
--- a/samples/xml/cas/cassample/spring-security-samples-xml-cassample.gradle
+++ b/samples/xml/cas/cassample/spring-security-samples-xml-cassample.gradle
@@ -65,6 +65,7 @@ gretty {
sslKeyStorePath = keystore
sslKeyStorePassword = password
jvmArgs = ["-Djavax.net.ssl.trustStore=${keystore}", "-Djavax.net.ssl.trustStorePassword=${password}"]
+ logbackConfigFile = "src/main/resources/logback.xml"
}
def casServer() {
diff --git a/samples/xml/cas/cassample/src/main/resources/logback.xml b/samples/xml/cas/cassample/src/main/resources/logback.xml
new file mode 100644
index 0000000000..3ebbcc0ddd
--- /dev/null
+++ b/samples/xml/cas/cassample/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+
+
diff --git a/samples/xml/cas/casserver/spring-security-samples-xml-casserver.gradle b/samples/xml/cas/casserver/spring-security-samples-xml-casserver.gradle
index 3e3498021f..fb92d46b02 100644
--- a/samples/xml/cas/casserver/spring-security-samples-xml-casserver.gradle
+++ b/samples/xml/cas/casserver/spring-security-samples-xml-casserver.gradle
@@ -53,4 +53,5 @@ gretty {
sslKeyStorePath = keystore
sslKeyStorePassword = password
jvmArgs = ["-Djavax.net.ssl.trustStore=${keystore}", "-Djavax.net.ssl.trustStorePassword=${password}"]
+ logbackConfigFile = "src/main/resources/logback.xml"
}
diff --git a/samples/xml/cas/casserver/src/main/resources/logback.xml b/samples/xml/cas/casserver/src/main/resources/logback.xml
new file mode 100644
index 0000000000..3ebbcc0ddd
--- /dev/null
+++ b/samples/xml/cas/casserver/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+
+
diff --git a/samples/xml/contacts/spring-security-samples-xml-contacts.gradle b/samples/xml/contacts/spring-security-samples-xml-contacts.gradle
index 46f2eccde5..8809838ff3 100644
--- a/samples/xml/contacts/spring-security-samples-xml-contacts.gradle
+++ b/samples/xml/contacts/spring-security-samples-xml-contacts.gradle
@@ -41,3 +41,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/helloworld/spring-security-samples-xml-helloworld.gradle b/samples/xml/helloworld/spring-security-samples-xml-helloworld.gradle
index 5bd5b1fd09..4b132a6720 100644
--- a/samples/xml/helloworld/spring-security-samples-xml-helloworld.gradle
+++ b/samples/xml/helloworld/spring-security-samples-xml-helloworld.gradle
@@ -31,3 +31,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/insecure/spring-security-samples-xml-insecure.gradle b/samples/xml/insecure/spring-security-samples-xml-insecure.gradle
index 26fc7ac5b4..c0653ec6e9 100644
--- a/samples/xml/insecure/spring-security-samples-xml-insecure.gradle
+++ b/samples/xml/insecure/spring-security-samples-xml-insecure.gradle
@@ -26,3 +26,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/insecure/src/main/resources/logback.xml b/samples/xml/insecure/src/main/resources/logback.xml
new file mode 100644
index 0000000000..3ebbcc0ddd
--- /dev/null
+++ b/samples/xml/insecure/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+
+
diff --git a/samples/xml/insecuremvc/spring-security-samples-xml-insecuremvc.gradle b/samples/xml/insecuremvc/spring-security-samples-xml-insecuremvc.gradle
index 5a5a2de952..426108950b 100644
--- a/samples/xml/insecuremvc/spring-security-samples-xml-insecuremvc.gradle
+++ b/samples/xml/insecuremvc/spring-security-samples-xml-insecuremvc.gradle
@@ -15,3 +15,7 @@ dependencies {
runtime 'opensymphony:sitemesh'
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/insecuremvc/src/main/resources/logback.xml b/samples/xml/insecuremvc/src/main/resources/logback.xml
new file mode 100644
index 0000000000..3ebbcc0ddd
--- /dev/null
+++ b/samples/xml/insecuremvc/src/main/resources/logback.xml
@@ -0,0 +1,12 @@
+
+
+
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+
+
+
+
+
+
+
+
diff --git a/samples/xml/jaas/spring-security-samples-xml-jaas.gradle b/samples/xml/jaas/spring-security-samples-xml-jaas.gradle
index a986704ef2..530bd98b72 100644
--- a/samples/xml/jaas/spring-security-samples-xml-jaas.gradle
+++ b/samples/xml/jaas/spring-security-samples-xml-jaas.gradle
@@ -31,3 +31,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/ldap/spring-security-samples-xml-ldap.gradle b/samples/xml/ldap/spring-security-samples-xml-ldap.gradle
index 6e7b2a6cce..056bc03313 100644
--- a/samples/xml/ldap/spring-security-samples-xml-ldap.gradle
+++ b/samples/xml/ldap/spring-security-samples-xml-ldap.gradle
@@ -29,3 +29,7 @@ dependencies {
integrationTestCompile seleniumDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/openid/spring-security-samples-xml-openid.gradle b/samples/xml/openid/spring-security-samples-xml-openid.gradle
index f6af367680..ed38d54720 100644
--- a/samples/xml/openid/spring-security-samples-xml-openid.gradle
+++ b/samples/xml/openid/spring-security-samples-xml-openid.gradle
@@ -12,3 +12,7 @@ dependencies {
runtime jstlDependencies
runtime slf4jDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/preauth/spring-security-samples-xml-preauth.gradle b/samples/xml/preauth/spring-security-samples-xml-preauth.gradle
index 6645d9e605..5788d9c4cf 100644
--- a/samples/xml/preauth/spring-security-samples-xml-preauth.gradle
+++ b/samples/xml/preauth/spring-security-samples-xml-preauth.gradle
@@ -14,3 +14,7 @@ dependencies {
//jettyRun {
// userRealms = [jettyRun.class.classLoader.loadClass('org.mortbay.jetty.security.HashUserRealm').newInstance('Preauth Realm' '$projectDir/realm.properties')]
//}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/servletapi/spring-security-samples-xml-servletapi.gradle b/samples/xml/servletapi/spring-security-samples-xml-servletapi.gradle
index e3a9e76e1d..b3cf9d65ad 100644
--- a/samples/xml/servletapi/spring-security-samples-xml-servletapi.gradle
+++ b/samples/xml/servletapi/spring-security-samples-xml-servletapi.gradle
@@ -19,3 +19,7 @@ dependencies {
}
eclipse.wtp.component.contextPath = 'servletapi'
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}
diff --git a/samples/xml/tutorial/spring-security-samples-xml-tutorial.gradle b/samples/xml/tutorial/spring-security-samples-xml-tutorial.gradle
index 8c520fdb2b..9bd1caf968 100644
--- a/samples/xml/tutorial/spring-security-samples-xml-tutorial.gradle
+++ b/samples/xml/tutorial/spring-security-samples-xml-tutorial.gradle
@@ -14,3 +14,7 @@ dependencies {
runtime project(':spring-security-web')
runtime jstlDependencies
}
+
+gretty {
+ logbackConfigFile = "src/main/resources/logback.xml"
+}