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 2009/08/24 04:25:37 UTC

DO NOT REPLY [Bug 47684] FileAppender.setEncoding() doesn't works

https://issues.apache.org/bugzilla/show_bug.cgi?id=47684


Curt Arnold <ca...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO


--- Comment #1 from Curt Arnold <ca...@apache.org> 2009-08-23 19:25:35 PDT ---
You did not include your original code that you thought was misbehaving.  I'm
guessing that you programatically constructed a RollingFileAppender, then
called setEncoding() but likely did not call activateOptions.   A call to
activateOptions() is required after changing any property or set of properties
to make it effective.  Appender constructors that take multiple arguments
typically invoke activateOptions as part of the constructor.  Configurators or
other code that use the default constructors will construct an appender (or
layout, etc), set properties, and then call activateOptions() to complete the
configuration.

Marking the bug as NEEDINFO for more information.

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

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