RE: Useful Object Renderers

2003-11-01 Thread Mark Masterson
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

Re: SNMPTrapAppender v. 1.2.9

2003-07-05 Thread Mark Masterson
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

New SNMPTrapAppender - version 1.2.8

2003-03-24 Thread Mark Masterson
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

RE: SNMPTrapAppender

2003-03-20 Thread Mark Masterson
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

SNMPTrapAppender v. 1.2.3

2003-01-01 Thread Mark Masterson
Greetings, I’m 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

SNMPTrapAppender v. 1.2.1

2002-10-15 Thread Mark Masterson
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.

RE: SnmpAppender extention suggestion

2002-10-15 Thread Mark Masterson
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

RE: Joe SNMP facade bug

2002-10-15 Thread Mark Masterson
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

SNMPTrapAppender v. 1.2

2002-10-03 Thread Mark Masterson
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

RE: SNMPTrapAppender

2002-05-28 Thread Mark Masterson
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

RE: SNMP appender

2002-05-28 Thread Mark Masterson
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

RE: Third-party log4J Extension

2002-04-12 Thread Mark Masterson
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

SNMP appender update

2001-11-04 Thread Mark Masterson
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

RE: RE: SNMP appender?

2001-10-03 Thread Mark Masterson
>>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

RE: log4j.dtd Line=3: Element type "log4j:configuration" is not declared

2001-10-03 Thread Mark Masterson
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... --

RE: New JMX code in 1.2 alpha

2001-10-02 Thread Mark Masterson
It's your call Ceki - I hope you're right! ;-) --Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: RE: SNMP appender?

2001-10-02 Thread Mark Masterson
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

RE: New JMX code in 1.2 alpha

2001-10-01 Thread Mark Masterson
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

RE: New JMX code in 1.2 alpha

2001-09-30 Thread Mark Masterson
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

New JMX code in 1.2 alpha

2001-09-30 Thread Mark Masterson
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

SNMP appender?

2001-09-27 Thread Mark Masterson
Anybody have an appender that emits SNMP messages? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: NDC usage ?? -> some help please ? >> Hellu

2001-06-11 Thread Mark Masterson
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

RE: modifying log levels through a management console

2001-06-05 Thread Mark Masterson
>>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

RE: modifying log levels through a management console

2001-06-05 Thread Mark Masterson
>>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

RE: Config docs or a User's Guide (Was: Help on property file settings for Appenders and Layouts)

2001-06-05 Thread Mark Masterson
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,

RE: How to set additivity with xml config files

2001-06-05 Thread Mark Masterson
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:

RE: modifying log levels through a management console

2001-06-05 Thread Mark Masterson
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

Config docs or a User's Guide (Was: Help on property file settings for Appenders and Layouts)

2001-05-27 Thread Mark Masterson
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

RE: DailyRollingFileAppender and DOMConfig

2001-04-27 Thread Mark Masterson
Thanks, Ceki! --Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using AsyncAppender in an RMI server process

2001-04-27 Thread Mark Masterson
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

DailyRollingFileAppender and DOMConfig

2001-04-27 Thread Mark Masterson
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

RE: Failover logging possible in Log4J ?

2001-02-09 Thread Mark Masterson
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

RE: how to set threshold on an appended from DOMConfigurator file

2001-02-06 Thread Mark Masterson
Yes. Like this: Cheers, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]