Commit 1c33bac2 authored by benjamin.ertl's avatar benjamin.ertl
Browse files

fix

parent cf5aa5f8
......@@ -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>
......
......@@ -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();
}
}
}
# 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
<?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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment