[
https://issues.apache.org/jira/browse/LOG4NET-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dominik Psenner resolved LOG4NET-210.
-------------------------------------
Resolution: Won't Fix
Fix Version/s: (was: 1.2 Maintenance Release)
The longer a string is, the longer it will take to append it to whichever sink
it should go to. That's to be expected. In the example you have there, building
the "newstring" probably takes more time than the actual logging. Please also
note that the logging performance depends largely on the appender.
Feel free to reopen the issue if you disagree with this resolution. Please
provide more information about the exact appender that has poor performance
with long strings.
> Regional Setting "Quechua (Peru)" makes Log4Net.Info to hang on strings with
> length > 5000
> ------------------------------------------------------------------------------------------
>
> Key: LOG4NET-210
> URL: https://issues.apache.org/jira/browse/LOG4NET-210
> Project: Log4net
> Issue Type: Bug
> Affects Versions: 1.2.10
> Environment: Windows XP
> Reporter: fatcat
>
> We are using log4net for .NET Framework 2.0 version 1.2.10.0.
> Somehow code
> String newstring = "";
> for (int i = 0; i < N; i++)
> {
> newstring += "a";
> }
> _log4net.Info(newstring);
> Where N > 5000 works fine with English selected in Regional Optins for
> Standards and Formats, but when you select something less common as "Quechua
> (Peru)" - such long strings make log4net to hang. And if string is longer -
> then time for which appender hangs - is bigger.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira