Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
benjamin.ertl
aai-identity-harmonization
Commits
1c33bac2
Commit
1c33bac2
authored
Jan 11, 2016
by
benjamin.ertl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
cf5aa5f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
38 deletions
+18
-38
pom.xml
pom.xml
+3
-3
src/main/java/edu/kit/scc/Main.java
src/main/java/edu/kit/scc/Main.java
+7
-7
src/main/resources/log4j.properties
src/main/resources/log4j.properties
+8
-0
src/main/resources/logback.xml
src/main/resources/logback.xml
+0
-28
No files found.
pom.xml
View file @
1c33bac2
...
...
@@ -98,9 +98,9 @@
<version>
20151123
</version>
</dependency>
<dependency>
<groupId>
ch.qos.logback
</groupId>
<artifactId>
logback-classic
</artifactId>
<version>
1.
0
.13
</version>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-log4j12
</artifactId>
<version>
1.
7
.13
</version>
</dependency>
</dependencies>
...
...
src/main/java/edu/kit/scc/Main.java
View file @
1c33bac2
...
...
@@ -39,12 +39,12 @@ public class Main {
// client.makePOST("localhost", 50070, "user", "password",
// "http://localhost:50070");
//
EcpAuthenticator auth = new EcpAuthenticator();
//
try {
//
auth.authenticate(null);
//
} catch (LdapException e) {
//
// TODO Auto-generated catch block
//
e.printStackTrace();
//
}
EcpAuthenticator
auth
=
new
EcpAuthenticator
();
try
{
auth
.
authenticate
(
null
);
}
catch
(
LdapException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
}
src/main/resources/log4j.properties
0 → 100644
View file @
1c33bac2
# Root logger option
log4j.rootLogger
=
DEBUG, stdout
# Redirect log messages to console
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target
=
System.out
log4j.appender.stdout.layout
=
org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern
=
%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
\ No newline at end of file
src/main/resources/logback.xml
deleted
100644 → 0
View file @
cf5aa5f8
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- <include resource="org/springframework/boot/logging/logback/base.xml"
/> -->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder
by default -->
<encoder>
<pattern>
%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
</pattern>
</encoder>
</appender>
<appender
name=
"FILE"
class=
"ch.qos.logback.core.FileAppender"
>
<file>
/tmp/example.log
</file>
<append>
false
</append>
<encoder>
<!-- <pattern>%-5relative %-5level %logger{35} - %msg%n</pattern> -->
<pattern>
%msg%n
</pattern>
</encoder>
</appender>
<logger
name=
"edu.kit.scc"
level=
"DEBUG"
additivity=
"false"
>
<appender-ref
ref=
"STDOUT"
/>
</logger>
<!-- <logger name="demo.LoggingService" level="DEBUG" additivity="false">
<appender-ref ref="FILE" /> </logger> -->
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment