logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47684] New: FileAppender.setEncoding() doesn't works
Date Wed, 12 Aug 2009 05:23:54 GMT
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@logging.apache.org
        ReportedBy: zhouyanming@gmail.com


--- Comment #0 from quaff <zhouyanming@gmail.com> 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@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message