From 21c72a47b4f77030eb6362afea2aa2be59700db7 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Mon, 22 Sep 2014 16:52:21 +0200 Subject: [client] NEW: Logging mechanisms for the client 1. Make sure you have initialised the Logger when you need logging in a particular class. Take a look at Login_GUI.java:46 on how to init it. 2. ALWAYS use LOGGER instead of System.out 3. log file is beeing written to where the config.ini is written 4. old log file gets renamed to bwSuite.log.old on startup --- dozentenmodul/src/main/properties/log4j.properties | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 dozentenmodul/src/main/properties/log4j.properties diff --git a/dozentenmodul/src/main/properties/log4j.properties b/dozentenmodul/src/main/properties/log4j.properties new file mode 100644 index 00000000..21c0faed --- /dev/null +++ b/dozentenmodul/src/main/properties/log4j.properties @@ -0,0 +1,6 @@ +log4j.rootLogger=DEBUG, A1 + +log4j.appender.A1=org.apache.log4j.ConsoleAppender +log4j.appender.A1.layout=org.apache.log4j.PatternLayout +log4j.appender.A1.layout.ConversionPattern=[%t] %-5p %F - %m%n +log4j.logger.org.apache.directory=ERROR -- cgit v1.2.3-55-g7522