Howdy,
The attached has always seemed to me almost too trivial, but it's made my
log-reading life vastly more pleasant.
It's an ObjectRenderer for Calendars and Dates. Although Date has a
half-decent #toString() (and the java.sql.Time a quite pleasant one),
Calendar's #toString is something only
Hi Viv,
You aren't specifying an implementation of the SnmpTrapSender interface in
your configuration.
Your config should look like this - the second line is the one you are
missing.
log4j.appender.TRAP_LOG=org.apache.log4j.ext.SNMPTrapAppender
log4j.appender.TRAP_LOG.ImplementationClassName=org
Greetings,
I have released a new version of the SNMPTrapAppender on my Web site
(www.m2technolgies.net) (www.m2technologies.net/asp/snmpTrapAppender.asp).
The new version includes the following changes/improvements:
-- based on the ideas in the code contributed by Matt Monks, we have added a
fea
b site.
Unfortunately, however, your attachments seem to have gotten stripped off
your mail as it made its way onto the mailing list. Could you try sending
them again, perhaps in an out-of-band mail directly to my address?
Cheers,
Mark Ma
Greetings,
Im starting the New Year off with a release of the SNMPTrapAppender. New
in this release is an additional implementation of the SnmpTrapSender
interface which uses the open source NetSNMP command line tools to send
traps. I wrote this primarily as a proof-of-concept several people
Greetings,
There's a new release of the appender on my Web site. This release includes a fix for
the string vs. byte array bug reported by Steve Meyfroidt, and the SysupTimeResolver
idea contributed by Thomas Muller.
http://www.m2technologies.net/ -- "Data" - "SNMPTrapAppender"
Enjoy.
Hi Thomas,
That's purty! :-) I'll add it and list you as author/contributor. I am reluctant to
just kill the #setSysUpTime method/property, for backwards compatibility reasons, but
I did deprecate it, and modify the appender to use the resolver's value whenever the
sysUpTime property is n
Hi Steve,
Ahh, brilliant!
>>the SnmpOctetString class in the JoeSnmp implementation is treating the IP Address
>String as a list of bytes, so what I get in the trap is the ascii values of my String
>IP Address.<<
Yes, this had been reported before, but the report was not specific enou
Greetings,
I've released a new version of the SNMPTrapAppender. The new version addresses
problems involved with compatibility with Log4J version 1.2.x, as well as attempting
to address a raft of complaints/requests that I've received over the course of the
last year. Here's the blurb I've
Hi David,
First off, please forgive me for copying my answer to you to the list, but this is a
very interesting question, and I can imagine the answer might be helpful for other
folks. Above and beyond that, maybe somebody else is already using the appender with
Tivoli and might be able to
Hi yourself!
>>Do you have any examples of using you classes?<<
First off, forgive me for copying my reply to the Log4J users list, but I get this
question rather often, and I think it might help other folks to see the answer.
On to yor question -- you mean, Java code using Log4J where t
Hi Ceki,
Could you add a link on the Web site somewhere for the SNMPTrapAppender? The URL is:
http://www.m2technologies.net/asp/snmpTrapAppender.asp
I occasionally get mail from people who somehow manage to find a reference to this in
the list archives, but not the specific mail that ha
Greetings all,
For those interested, I've put the SNMPTrapAppender up on my Web site, with a brief
description, and a link to download the two classes and their JavaDocs as a Zip file.
The copy on the Web site has a version of the SNMPTrapSenderFacade class with a minor
bug fix - this is n
>>I don't see any attachment included...<<
Eh? Really? The copy of my mail that I got back (from the Log4J user's
list) has all the attachments. It's probably an Outlook weirdness. I'll
look at it tomorrow. If all else fails, I'll post links to my Web site,
where you could pull the files from
Jim,
I've gotten this one recently. I discovered that I had some stuff in my
class path that included older copies of XML parsers (Crimson, for example).
When I cleaned up the class path, so I was sure which parser was loading and
which version, this went away...
--
It's your call Ceki - I hope you're right! ;-)
--Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hey, thanks for the tip, Jin. I had flown over the OpenNMS site, but I was
under the impression that they had abandoned this and were just
concentrating on the mgt. server and console. I'll check this out. If I
can, I'll re-visit the SNMPTrapAppender, and post an updated version to the
list.
C
Ahh! I got it. Sun's download site for the JMX offers two options -
binaries or source. When you download the "binaries", all you get is a PDF
white paper and Javadocs. When you download the "source", you get source,
Jars, Javadocs and a whole lot more. That includes the HtmlAdaptor. The
Jav
Hi Ceki!
>>The Technology Compatibility Kit (TCK) restriction imposes a serious
financial burden on opensource projects. Look at JBoss and EJB
certification. In short, the current licensing scheme of JCP does not seem
to allow independent opensource implementations of JCP APIs. This is a major
co
Hi Ceki,
Since I was on a quest to find a way to append to an SNMP trap last week, I
spent some time researching the upcoming JMX API from Sun. I had high hopes
that I would be able to use this to allow me to create an open,
vendor-neutral implementation of an SNMP trap sender. However, my rese
Anybody have an appender that emits SNMP messages?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Eddie,
Nobody's probably jumping to answer your more general question because the
NDC mechanism is very flexible - it is impossible to say "this is THE right
way to use it", simply because there are so many different ways that you
could use it, for many different purposes. Having said that, the
>>Is it more performant to set the log level via the Appender or via
Categories?<<
Ah, here I'm likely to get myself in trouble, as this is (for me, at least)
a subtle and complicated issue.
Short answer: I think that you would find that setting the priority at the
Category level is faster, in t
>>Were can I find a reference of the possible properties of an appender, for
example the DailyRollingFileAppender ? <<
There isn't one, yet. I've just started writing one, but it won't be done
until the end of July, or mid-August. That's the short answer: the long
answer == in fact, you can fi
Paul,
>> That makes you the perfect person to start writing one. <<
;-) Maybe not "perfect", but adequate, anyway!
Ceki's current "User's Guide" *is* a good introduction, but I suspect it
best serves the "advanced" end of the user/developer spectrum of the Log4J
community. This is, obviously,
Mike,
Change what you sent as an example to look like this:
This is one of those things that's buried in the DTD.
Cheers,
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
You don't need to jump through this many hoops to get this behavior - there
is an easier way to achieve dynamic, run-time re-configuration using
standard config files. Specifically, you don't need to roll your own file
listener - Log4J already has one. To do this, you subclass FileWatchdog and
t
Hi,
Listen, I'm hardly a Log4J guru, but this topic is discussing something that
I think that many of us have encountered, as users. Likewise, I've given
some thought to taking a whack at a users' guide, as many other people
probably also have. In fact, here at my company, for our people intern
Thanks, Ceki!
--Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
As long as I'm posting questions
I've got a server process, which services applets via RMI. The server (not
the applets) uses Log4J. If I use an AsyncAppender, does anybody have any
suggestions for where/how I could invoke Category.shutdown? I'm used to
doing that when I use async to ensur
Hey all,
Anybody gotten the DailyRollingfileAppender (from b4) working in a
DOMConfigurator environment? The naïve setting I tried throws an error.
Any ideas? The above example prompts Log4J to regurgitate "log4j:WARN No
such property [datePattern ] in org.apache.log4j.DailyRollingFil
You could write some kind of a simple watchdog process that monitors for
events that would trigger the failover. When one happens, the watchdog
could change (or swap out) the config file for Log4J. If logging has been
set up with the "configureAndWatch" method, this will cause the logger to be
r
Yes. Like this:
Cheers,
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
33 matches
Mail list logo