Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 88403 invoked from network); 13 Feb 2006 07:29:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Feb 2006 07:29:44 -0000 Received: (qmail 9873 invoked by uid 500); 13 Feb 2006 07:29:40 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 9821 invoked by uid 500); 13 Feb 2006 07:29:39 -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 9809 invoked by uid 99); 13 Feb 2006 07:29:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2006 23:29:39 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of e_baley@hotmail.com designates 65.54.187.187 as permitted sender) Received: from [65.54.187.187] (HELO hotmail.com) (65.54.187.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2006 23:29:37 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 12 Feb 2006 23:29:17 -0800 Message-ID: Received: from 80.178.122.31 by BAY18-DAV7.phx.gbl with DAV; Mon, 13 Feb 2006 07:29:16 +0000 X-Originating-IP: [80.178.122.31] X-Originating-Email: [e_baley@hotmail.com] X-Sender: e_baley@hotmail.com From: "Elijah Baley" To: "Log4J Users List" References: Subject: Re: Generating SNMP traps from Java Application Date: Mon, 13 Feb 2006 09:29:11 +0200 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.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-OriginalArrivalTime: 13 Feb 2006 07:29:17.0274 (UTC) FILETIME=[327613A0:01C6306F] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N There is such a logger called (if I remember correctly) JoeSNMPTrapAppender. However, look into using SNMP4J (www.snmp4j.org - open source) and implement your own appender... ----- Original Message ----- From: "Swarna Mani" To: Sent: Monday, February 13, 2006 04:33 Subject: Generating SNMP traps from Java Application > My Name is Swarna. I am trying to implement generation of SNMP traps from > Java > application using log4j. We already have log4j implemented for generating > log > messages. > > When I searched in the web, I came across posts in http://blog.gmane.org > Wherein > it is explained that code like > > logger.warn("Send a trap"); > > > will generate a trap. > > My question is we use similar one to generate logs, how can we distinguish > between entries for logs and entries for traps? > > > > Also I find that it is mentioned that all we need to do is change the > configuration script. I am thinking of using JOESNMP. > > Will it be possible for you to provide me the steps on > > What needs to be coded in java application to differentiate logs and > traps? > Where do I install joesnmp? > What changes I need to make to log4j.xml? > How can I test the same? > > > Thanks in Advance, > Swarna > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org