tn5250j/src log4j.properties,1.1,1.2
Patrick Bielen <[email protected]> Thu, 24 Jun 2004 10:33:17 +0000
| Newsgroups | gmane.comp.java.tn5250j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tn5250j/tn5250j/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15559/src Modified Files: log4j.properties Log Message: Changed the config, now also logs to file (overwritten each time). Added comments to the config-file for other developers to change behaviour. Index: log4j.properties =================================================================== RCS file: /cvsroot/tn5250j/tn5250j/src/log4j.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** log4j.properties 14 Apr 2004 12:15:53 -0000 1.1 --- log4j.properties 24 Jun 2004 10:33:14 -0000 1.2 *************** *** 1,11 **** ! # Set root logger level to DEBUG and its only appender to A1. ! log4j.rootLogger=INFO, A1 # A1 is set to be a ConsoleAppender. ! log4j.appender.A1=org.apache.log4j.ConsoleAppender ! # A1 uses PatternLayout. ! log4j.appender.A1.layout=org.apache.log4j.PatternLayout ! log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n #TODO, extend as this is shamelessly ripped from the example :-) \ No newline at end of file --- 1,29 ---- ! # Changed the configuration so it also creates a log-file. ! # This way there is no need to run the emulator from the console, ! # to see the output on the console, but simply read the log. ! # The log is overwritten each time the emualtor starts, ! # to avoid the log to grow forever (the append = false arg) ! ! # Set root logger level to DEBUG and two appenders, console and a file R ! # DebugLevel can be : DEBUG, INFO, WARN, ERROR or FATAL ! # If you only want output to console, remove the ", R" below this line. ! log4j.rootLogger=DEBUG, stdout, R # A1 is set to be a ConsoleAppender. ! log4j.appender.stdout=org.apache.log4j.ConsoleAppender ! # A1 is set to be a FileAppender. ! log4j.appender.R=org.apache.log4j.FileAppender ! log4j.appender.R.File=tn5250j.log ! # Take care the file is overwritten each time the emualtor runs ! log4j.appender.R.Append=false ! ! # C uses PatternLayout. ! log4j.appender.stdout.layout=org.apache.log4j.PatternLayout ! log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n ! ! # F uses PatternLayout. ! log4j.appender.R.layout=org.apache.log4j.PatternLayout ! log4j.appender.R.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n #TODO, extend as this is shamelessly ripped from the example :-) \ No newline at end of file ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com