You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2004/12/15 22:20:00 UTC

DO NOT REPLY [Bug 16883] - ConsoleAppender default Contructor does not define a layout

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=16883>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=16883


ceki@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From ceki@apache.org  2004-12-15 22:20 -------
Reasonable yes but not correct. The default constructor of an Appender
is intended to be used with log4j Configrators (through config files).
This is the well-known required for java beans pattern.

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.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org