This repository was archived by the owner on Nov 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed
samples/service-provider/starter Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ dependencies {
53
53
compile " org.bouncycastle:bcpkix-jdk15on:$bcprovVersion "
54
54
compile " joda-time:joda-time:$jodaTimeVersion "
55
55
compile " org.apache.httpcomponents:httpclient:$httpClientVersion "
56
- compile " org.slf4j:slf4j-api:$slf4jVersion "
57
56
compile " commons-logging:commons-logging:$commonsLoggingVersion "
58
57
59
58
// ---Spring Security Servlet --
@@ -69,12 +68,13 @@ dependencies {
69
68
}
70
69
compile " org.thymeleaf.extras:thymeleaf-extras-springsecurity5:$thymeleafExtrasSpringSecurityVersion "
71
70
71
+ // ---Logging --
72
+ compile " org.slf4j:slf4j-log4j12:$slf4jVersion "
72
73
73
74
74
75
testCompile (" org.springframework:spring-test:$springVersion " ) {
75
76
exclude group : " commons-logging" , module : " commons-logging"
76
77
}
77
- testCompile " org.slf4j:slf4j-log4j12:$slf4jVersion "
78
78
testCompile " commons-logging:commons-logging:$commonsLoggingVersion "
79
79
testCompile (" org.springframework:spring-test:$springVersion " ) {
80
80
exclude group : " commons-logging" , module : " commons-logging"
@@ -91,4 +91,4 @@ dependencies {
91
91
checkstyle(" io.spring.javaformat:spring-javaformat-checkstyle:0.0.12" )
92
92
93
93
94
- }
94
+ }
Original file line number Diff line number Diff line change 21
21
import org .springframework .context .annotation .Import ;
22
22
23
23
import boot .saml2 .config .Saml2SampleBootConfiguration ;
24
+ import org .apache .commons .logging .Log ;
25
+ import org .apache .commons .logging .LogFactory ;
24
26
25
27
@ SpringBootApplication
26
28
@ Import ({ Saml2SampleBootConfiguration .class })
27
29
public class Saml2ServiceProviderStarterApplication {
28
30
29
31
public static void main (String [] args ) {
30
- SpringApplication .run (Saml2ServiceProviderStarterApplication .class , args );
32
+ Log log = LogFactory .getLog (Saml2ServiceProviderStarterApplication .class );
33
+ log .info ("Starting SAML 2 Sample Application" );
34
+ SpringApplication .run (
35
+ Saml2ServiceProviderStarterApplication .class , args
36
+ );
31
37
}
32
38
33
39
}
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2002-2019 the original author or authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ #
17
+
18
+ log4j.rootLogger =INFO, consoleAppender
19
+
20
+ log4j.appender.consoleAppender =org.apache.log4j.ConsoleAppender
21
+ log4j.appender.consoleAppender.layout =org.apache.log4j.PatternLayout
22
+ log4j.appender.consoleAppender.layout.ConversionPattern =[%t] %-5p %c %x - %m%n
You can’t perform that action at this time.
0 commit comments