Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 3727 invoked from network); 18 Aug 2009 01:05:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 01:05:08 -0000 Received: (qmail 409 invoked by uid 500); 18 Aug 2009 01:05:27 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 384 invoked by uid 500); 18 Aug 2009 01:05:27 -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 366 invoked by uid 99); 18 Aug 2009 01:05:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 01:05:24 +0000 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 him6ul@gmail.com designates 209.85.216.198 as permitted sender) Received: from [209.85.216.198] (HELO mail-px0-f198.google.com) (209.85.216.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 01:05:15 +0000 Received: by pxi36 with SMTP id 36so1396749pxi.7 for ; Mon, 17 Aug 2009 18:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=AkV9KxtN5aJLyjrc09eM3oTHCfHUfudDQL6Bqiaf1M0=; b=GGn4mhWW32FqfHai0o0J0welfvSIvaktHzIqNVAj6NKJ7MNWehGsfa8i9kEIiBvUx4 iLWQlRdvczRFbKg+WOH9BTrzE4O+7xrB9p0hZ0vd3XLQDvPh+h8y2jEPkcNz7pRXdeRk E07KKXdj8uwaf2hY3H9SpsFx5HJuwzE2BZdfI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; b=bASYj32tYWBU0bf2TDSZqc6AfIlH+x8Q/mU3EnkGmh+PkbkHZkNHVWBAPagojNtbiP 7CD86faIGgERbzkG/UgI//Uio3kYINhLsMO3AzF531y18OXf8M3SHJoYH5tGp7H5rMVu qamj5bMIv3mnNqcm3v7TMdClt1b1q4JEvyjLw= Received: by 10.115.116.4 with SMTP id t4mr5147783wam.93.1250557494854; Mon, 17 Aug 2009 18:04:54 -0700 (PDT) Received: from USDtop11 ([140.89.70.119]) by mx.google.com with ESMTPS id m34sm11413104waf.57.2009.08.17.18.04.53 (version=SSLv3 cipher=RC4-MD5); Mon, 17 Aug 2009 18:04:54 -0700 (PDT) Message-ID: <528CD01269BA44FC965450348315594A@egain.na> From: "Himanshu Gupta" To: Subject: ErrorHandler Date: Mon, 17 Aug 2009 18:04:52 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.3959 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, Can someone please point me to example on how to implement custom ErrorHandler and not use the default one? I am currently logging all my logs in log files over the network through RollingFileAppender. But if there is any glitch in network and it goes down and recovers, application runs fine but log4j stops working and no logs get logged in log files. I know this is happening because of OnlyOnceErrorHandler and therefore want to develop my own error handler for this situation. I tried using FallbackErrorHandler but somehow could not make it working - in this I am logging locally if network connection fails. Thanking you in anticipation. Himanshu --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org