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 2005/03/28 12:41:54 UTC
DO NOT REPLY [Bug 34205] New: -
Unable to set Encoding Type of log file
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=34205>.
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=34205
Summary: Unable to set Encoding Type of log file
Product: Log4j
Version: unspecified
Platform: Other
OS/Version: Windows 2000
Status: NEW
Severity: critical
Priority: P2
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: ramkumarpj@yahoo.com
CC: ramkumarpj@yahoo.com
Log file generated does not have "UTF-8" format.
I have set the encoding of FileAppender used by the Logger with
FileAppenderSetEncoding("UTF-8") method.
Following find the sequence in which I creates the Logger :-
private static Logger transaction;
transaction = Logger.getLogger("TransactionLogger");
FileAppender fileTransactionAppender = new FileAppender(new PatternLayout
(transactionLogLayoutString),outputDir+fileNameToken[0]+".trans",true);
fileTransactionAppender.setEncoding("UTF-8");
transaction.addAppender(fileTransactionAppender);
transaction.setLevel(Level.toLevel(transactionLogLevel));
For Logging :-
transaction.debug(String);
--
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