logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From girish kulkarni <girish.kulka...@anz.com>
Subject Re: Generating SNMP traps from Java Application
Date Mon, 20 Jun 2016 12:25:38 GMT
Mark Masterson <mark_masterson <at> compuserve.com> writes:

> Hi Swarna,
> Ah, fantastic.  Swarna, I've been meaning to get to your mail (to me 
> directly) for about a week now, but I wanted to "cc" my reply to the 
> log4j list, since most of your questions are generic log4j questions, 
> and not specific to the SNMPTrapAppender. 
> (http://www.m2technologies.net/asp/snmpTrapAppender.asp)
> 1. Bender has already explained what you need to do in your Java code, 
> to achieve what you want.  But just to be sure it's clear, and using 
> Bender's example further, here's what your code would then look like:
> logger.warn("Logging a trap out to somewhere...") // this is *your* 
> logger, the one you already had...
> mySnmpLogger.warn("This goes out to a trap") // this is the new, extra 
> logger, that you use to send traps.
> 2.  You don't install JoeSnmp, or Wengsoft, or Snmp4j, for that 
> You add the relevant Jar to your CLASSPATH, and that's it.  Where that 
> is/what that means is application specific, and you're going to have 
> tell us a whole lot more about your application, if you need us to 
> you with that.
> 3. The changes that you need to make in the log4j.xml file are rather 
> extensively documented on my Web site, and in the Javadocs for the 
> appender, which come with the download.  See here -- 

Hi All,

This is quite old one but found very useful as we are also implementing 
generating of SNMP trap messages using log4j for one of our project. 
Your below link 
ender.html) is not working. can you please redirect me for more 
information like how will our log4j2.xml look like and how can we call 
in our java application. 

Thanks in advance.

Girish Kulkarni

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

View raw message