logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron <drizzt...@gmail.com>
Subject using InputStream as message
Date Wed, 19 Mar 2008 16:47:46 GMT
I'm considering using log4j in order to log data that I receive as a
backup to a single file (DailyRollingFileAppender). I plan on
receiving the file into a temp file, and then using that as both the
source for the log and my processing. However I'd like to avoid having
to read all the data into memory in order to log it through log4j. I
was poking around, and I don't think this functionality currently
exists. I was looking for a bit of guidance on how to add a way to do
this. I was looking at adding a renderer in org.apache.log4j.or, but
the problem is it would require reading the whole file into memory.
Would I need to extend/re-implement an Appender? The problem is I want
to keep the entire file as a single log entry in the log file, but
don't want to read the file into memory. Any ideas?

--Aaron

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message