diff options
| author | Jonathan Bauer | 2014-09-22 16:52:21 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2014-09-22 16:52:21 +0200 |
| commit | 21c72a47b4f77030eb6362afea2aa2be59700db7 (patch) | |
| tree | fe51c97a54df2a239fdeddbcf8f1f3aa5608fa29 | |
| parent | [client] remove pointless instantiation of a static class ... (diff) | |
| download | tutor-module-21c72a47b4f77030eb6362afea2aa2be59700db7.tar.gz tutor-module-21c72a47b4f77030eb6362afea2aa2be59700db7.tar.xz tutor-module-21c72a47b4f77030eb6362afea2aa2be59700db7.zip | |
[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
| -rw-r--r-- | dozentenmodul/src/main/properties/log4j.properties | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
