Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 37879 invoked from network); 19 Mar 2008 16:48:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2008 16:48:21 -0000 Received: (qmail 7675 invoked by uid 500); 19 Mar 2008 16:48:14 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 7632 invoked by uid 500); 19 Mar 2008 16:48:14 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 7604 invoked by uid 99); 19 Mar 2008 16:48:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 09:48:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of drizzt321@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2008 16:47:36 +0000 Received: by nf-out-0910.google.com with SMTP id d3so259078nfc.0 for ; Wed, 19 Mar 2008 09:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=04vDO4qjtVX5Hqb/2o+9eBj3z0UDwlnw8jW2UKOFjZY=; b=BG33cOhTXJQju+/hM17sPfDZwPSBTUlEt5CIPe+Ofb6fkid1mVqf0Lzt6goYyOIyBXs1+ldnMPznNXBR/FRNwmPaLSFsBjs27B7Do7wOp93KA8tQwmKAzbnuNU1iwunllmiG2NXp2bSYBnv45LP8O2xni3g46sGr3Dzc3BYb7Gw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=O++DWMEuEwl/Vbq04Ha9HYWYSmvUi/4PglaxqZUF2HpRca7sMhGIIFvOM7Gwt7lmSQ9kJKPWL1ViBg1wbB2lUf7g/4FRdbBZRx63o2CWjQZDPIfGgzwRzGejsuGs2Jari0CG552beXjYCIJC7oxPqOJOZm2gItN1XP1OXmM3HoE= Received: by 10.78.136.9 with SMTP id j9mr1539959hud.13.1205945266194; Wed, 19 Mar 2008 09:47:46 -0700 (PDT) Received: by 10.78.197.17 with HTTP; Wed, 19 Mar 2008 09:47:46 -0700 (PDT) Message-ID: Date: Wed, 19 Mar 2008 09:47:46 -0700 From: Aaron To: "Log4J Users List" Subject: using InputStream as message MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org 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