You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Picaso <pi...@roltaus.com> on 2004/06/30 21:35:18 UTC
Limitation of size of string that can be logged?
Hi,
I would like to know if there's any limitation on the length of string that
can be logged. I tried the following:
char* XMLData = "<start>and so on............really large amount of
data...<end>"
USES_CONVERSION;
logger->info(A2W(XMLData));
and the output i get in log file is incomplete and the logger stops logging
any statements afterwards.
Can you please tell me how to overcome this limitation? it works fine when i
log small amount of data, using the same method above.
Best Wishes,
Pciaso
Re: Limitation of size of string that can be logged?
Posted by Curt Arnold <ca...@houston.rr.com>.
On Jun 30, 2004, at 2:35 PM, Picaso wrote:
> Hi,
> I would like to know if there's any limitation on the length of string
> that
> can be logged. I tried the following:
Looking at the include/log4cxx/helpers/tchar.h, it appears that any
message that is converted from ASCII to Unicode or vice-versa is
truncated at 512 characters. If you could define your message in terms
of TCHAR's, you might avoid that limit and the conversion penalty.