ceki 2004/12/15 13:21:37 Modified: docs HISTORY.txt src/java/org/apache/log4j ConsoleAppender.java Log: The default constructor of an Appender is intended to be used with log4j Configurators (through config files). For programmatic oconfigration, the general and recommendded usage pattern is: XAppender xa = new XAppender(); xa.setThisOption(...); xa.setThatOption(...); xa.activateOptions(); All constructors in Appenders which create a directly usable appender instances take parameters. None of them create a usable instance with the default (no parameter) constructor. Revision Changes Path 1.22 +0 -3 logging-log4j/docs/HISTORY.txt Index: HISTORY.txt =================================================================== RCS file: /home/cvs/logging-log4j/docs/HISTORY.txt,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- HISTORY.txt 15 Dec 2004 20:46:50 -0000 1.21 +++ HISTORY.txt 15 Dec 2004 21:21:37 -0000 1.22 @@ -14,9 +14,6 @@ - Fixed Bugzilla 15198: TelnetAppender: NullPointerException if SocketHandler not initialized. [*] - - Implemented Bugzilla 16883: Default ConsoleAppender constructor - enhanced with output sink and layout. [*] - - Fixed Bugzilla 12112: CountingQuietWriter miscounts bytes. [*] - Fixed Bugzilla 18076: setting of firstTime in OnlyOnceErrorHandler. [*] 1.20 +1 -2 logging-log4j/src/java/org/apache/log4j/ConsoleAppender.java Index: ConsoleAppender.java =================================================================== RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/ConsoleAppender.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- ConsoleAppender.java 13 Dec 2004 15:59:45 -0000 1.19 +++ ConsoleAppender.java 15 Dec 2004 21:21:37 -0000 1.20 @@ -30,10 +30,9 @@ protected String target = SYSTEM_OUT; /** - * Default constructor: TTCC Pattern Layout to System.out. + * As in most cases, the default constructor does nothing. */ public ConsoleAppender() { - this(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN)); } public ConsoleAppender(Layout layout) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]