https://issues.apache.org/bugzilla/show_bug.cgi?id=47684
Summary: FileAppender.setEncoding() doesn't works
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: Appender
AssignedTo:
log4j-dev@logg...
ReportedBy:
zhouyanming@gmai...
--- Comment #0 from quaff <
zhouyanming@gmai...> 2009-08-11 22:23:52 PDT ---
Created an attachment (id=24131)
patch for solution1
FileAppender appender = new DailyRollingFileAppender(layout,
getPath(),DATE_STYLE);
//constructor will call FileAppender.setFile(String fileName, boolean append,
boolean bufferedIO, int bufferSize) then call
WriterAppender.createWriter(OutputStream os) then call
WriterAppender.getEncoding()
appender.setEncoding(ENCODING); //no use
appender.setAppend(true);
solution 1:
add encoding to constructor and deprecate setEncoding() method
attachment is a patch.
solution 2:
rebuild QuietWriter when setEncoding()
--
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@logg...
For additional commands, e-mail:
log4j-dev-help@logg...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.