RE: feature request: logging a stack trace

2002-07-30 Thread Jon Skeet
> my implementation (residing in a class called Debug) is > very rough so, > it needs a bit of cleaning up to fit well into log4j: > > > public static void logStackTrace(org.apache.log4j.Logger log) > { > try { > throw new Exception(); > } catch (Exception e) { > Strin

RE: JMS and MDB (James Law vacation)

2002-07-24 Thread Jon Skeet
> I'm on vacation until July 31. Doh - apologies for approving this post... will look more closely next time :) Sorry folks... Jon -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Request to Users of this forum!!!!

2002-05-31 Thread Jon Skeet
> I've joined the forum recently and been posting my > issues/doubts to the forum. And I've observed constantly that > many of the guys haven't even opening the mail at all. How have you observed that? How can you tell the difference between people reading mails and not responding, and people

RE: Category not found in RC2, I am not using it?

2002-04-26 Thread Jon Skeet
> It's been changed to Logger. See Logger in the javadoc with log4j. It hasn't been *changed* to Logger. Logger *extends* Category, which is why you still need the Category class if you're using Logger. Jon -- To unsubscribe, e-mail: For additional commands, e-mai

RE: Clarification on Levels

2002-04-17 Thread Jon Skeet
> The JavaDoc doesn't seem to say, and the two places I see > references to the > list of levels, they are in different orders: > > JavaDoc Field Summary table: DEBUG ERROR FATAL INFO WARNING This looks like it's been generated by JavaDoc in alphabetical order. Trust the manual on this one (a

RE: deleting log file

2002-03-31 Thread Jon Skeet
> I observed this behavior while using Log4j on Unix. > I am using a RollingFileAppender and logs are very crucial > for me. But, if > by chance if I delete the main log file, it is not recreated > by Log4j until > I restart the webserver. In windows I am not having this > problem, as windows >

RE: Requesting for Dll

2002-03-08 Thread Jon Skeet
> I am using Log4j in Windows NT system. I observed in > one of the classes that i have to register the > following dll. Please mail me the same as soon as > possible. > > DLL Name: NTEventLogAppender.dll It comes in the download zip file. Jon btw, if you're going to request something from a

RE: Using MS Exchange Server for email

2002-02-22 Thread Jon Skeet
> Actually if your mail server administrator is following MS security > guidelines, SMTP will be *disabled* on your Exchange server. Really? Completely disabled rather than just disabled in terms of being an open relay (which is clearly very bad)? > The easiest thing for you, the developer wo

RE: Using MS Exchange Server for email

2002-02-22 Thread Jon Skeet
> I would like to use log4j to send email upon critical > failures, however I'm > using MS Exchange Server (IMAP), so the SMTPAppender will not > work for me. > Has anyone done this? If so, I would be grateful for any > help/suggestions. > This is my first try at this so any help is appreciate

RE: JDK1.4

2002-02-18 Thread Jon Skeet
> Not specifically Log4J related, but worthy of note. > > I'd strongly suggested anyone considering moving up to JDK1.4 > take a long hard > look at the following bug (and hopefully vote it up the priority list) > > http://developer.java.sun.com/developer/bugParade/bugs/4523761.html > > I'm l

RE: Specifying absolute pathname for log4j

2002-02-01 Thread Jon Skeet
> You're right, Jon. Specifying > \\JRun\\jsm-default\\logfile\\clara_debug > works. I was assuming that it would look for the directory in > jsm-default > and find it. Thanks for all your help. Note that it *would* have found it if you'd specified a relative directory, eg: logfile\\clara_debu

RE: Specifying absolute pathname for log4j

2002-02-01 Thread Jon Skeet
> I am using JRun server and by default its root directory is set to > c:\JRun\jsm-default. All the log statements were being logged > in jsm-default > directory. So I created a new folder under jsm-default called > logfile. When > I tried \\logfile\\clara_debug.log, it didn't work. But, specify

RE: Specifying absolute pathname for log4j

2002-02-01 Thread Jon Skeet
> Thanks, Jon. Putting the drive letter worked! Maybe it wasn't > finding the directory before. Possibly - and if it was looking on the wrong drive, that would explain why it couldn't find the directory. Is there any chance that the working directory of the process wasn't on the same drive as

RE: Specifying absolute pathname for log4j

2002-02-01 Thread Jon Skeet
> Thanks for the responses. > > I am using the following in code, > > log4j.appender.R1=org.apache.log4j.DailyRollingFileAppenderExt > log4j.appender.R1.File=\\logfile\\clara_debug.log > > and the error I get is, > > log4j:ERROR > super.setFile(\logfile\clara_debug.2002-02-01.log, false) cal

RE: Specifying absolute pathname for log4j

2002-02-01 Thread Jon Skeet
> Here's a snippet of my code in the configuration file, > > log4j.appender.R2=org.apache.log4j.DailyRollingFileAppenderExt > log4j.appender.R2.File=clara_error.log > > I need to be able to specify a directory name in front of the > file name (eg. > \logfiles\clara_error.log). Does anyone know

RE: DailyRollingFileAppender Extension

2002-01-30 Thread Jon Skeet
> I have been going through the Mailing lists and find that a > few of you > seem to have this .jar file. Could someone please send me the > file or let me > know where I can find it. > I am using DailyRollingFileAppender in my project but, am > having problems > with getting the log file to

RE: Log4J performance under Solaris

2002-01-11 Thread Jon Skeet
> I figured it out. > When I removed %F and %L from > log4j.appender.R.layout.ConversionPattern in > my log4j configuration file, the system no longer calls > LocationInfo - I > guess that makes sense. > > Still, it's surpsising that PrintStackTrace on Solaris would > take that long > - we

RE: Is it really Ok to use fully-qualified class name as category name ?

2002-01-03 Thread Jon Skeet
> I'm thinking about using fully-qualified class name as > category name for > logger, as recommended in the manual. I just wonder if we > have a lot of > classes in our application. Is it possible that I may end up > wasted a lot of instances of Logger for each class ? And finally > we may on

RE: Config file formats

2002-01-03 Thread Jon Skeet
> Hello there. I am a newbie to Log4J, but am an experienced Java > developer. Can somebody direct me to the documentation on the > log4j.properties file format? I have searched through the API > documentation and cannot find anything. The documentation on how to > configure Log4J using config fil

RE: Unicode output to FileAppender - how to view file?

2001-12-22 Thread Jon Skeet
> I've been looking at WriterAppender. > > There is a method on Writer for setEncoding(String encoding) > which modifies > the member variable 'encoding', which is > "set to null by default which results in the utilization of > the system's default encoding." Without looking at the code, that

RE: re : log4j jar file problem

2001-12-07 Thread Jon Skeet
> i add logj in my manifest and now when i execute it , it say > me that it > could not found my main class: > > this is my MANIFEST.MF file > > Manifest-Version: 1.0 > Main-Class: BPLPaiement > Class-Path: > log4j.jar:mail.jar:activation.jar:xerces.jar:jaxp.jar:sax.jar:j2ee.jar Get rid of the

RE: log4j:WARN File option not set for appender [STDOUT]. - help required

2001-12-06 Thread Jon Skeet
> I get these following two messages when log4j starts up: > > " log4j:WARN File option not set for appender [STDOUT]. " > " log4j:WARN Are you using FileAppender instead of ConsoleAppender? " > > and can find no reason for them, nor a way to suppress them. Check whether you've go

RE: specify the file appender's directory

2001-12-04 Thread Jon Skeet
> Do you know how the following {applicationRoot} is set? > > log4j.appender.mycat.file = ${applicationRoot}/logs/messages.log Well, you haven't given any context for that... but log4j will look for "applicationRoot" as a key in the system properties. Jon -- To unsubscribe, e-mail:

RE: Log4J Configuration File

2001-11-28 Thread Jon Skeet
> I am new to Log4J and I was wondering if the following could > be done. I > want to setup the configuration file so message with a > priority of FATAL or > ERROR are written to a JMS queue and all messages (all priorities) are > written to a log file. If this can be done can someone show >

RE: Safe to include log4j.properties in classpath?

2001-11-21 Thread Jon Skeet
> classpath=log4j.properties;blabal.jar;blabal.jar > > Is the above safe? Anyone knows if there is a VM that > would break because of the above? > > Can log4j finds the properties file with the above? I suspect not. I suspect you just need to put the directory *containing* log4j.properties ont

RE: How to set log file path with a system variable in NT system

2001-11-20 Thread Jon Skeet
> I have a system variable named TEMP, you can use set command > to find it. > for example: > set > ... > TEMP = C:\WINNT\TEMP > ... > > I'd like to set log file like: > > log4j.appender.debug.File=$TEMP/debug.log > or > log4j.appender.debug.File=${TEMP}/debug.log > > But it did'nt work. Indee

RE: Logging to multiple logs files?

2001-11-15 Thread Jon Skeet
> How can I log4j to log to different files. I'm trying have a audit > trail log file and a application log file. Just add different appenders to the same category. Jon -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: setting of priority for a category based on Appender

2001-10-30 Thread Jon Skeet
> i am new to log4J. i am using 2 types of Appenders one is > JDBC Appender > and second one is File . And i have different categories. > > my doubt is how can i set the priority for category based on > the Appender. > > for example: For a category com.foo.Abc I want to log the messages in

RE: Daily File Appender

2001-10-18 Thread Jon Skeet
> I'd like to have a FileAppender that automatically rolls over at > midnight each day and appends the date (preferably in a specified > format, see example below) and labels its file with the date it > was created. Is such a thing available already in log4j, or would > it be a welcome addition

RE: Configuration question

2001-10-16 Thread Jon Skeet
> Thanks for your help Mike, however, I think I may have > phrased my question > wrongly, and what I meant to ask was how would you use a > configuration file > to configure something like a SMTPAppender? For the moment, I > am not too > concerned whether the configuration file changes at runti

RE: configuration file format

2001-10-15 Thread Jon Skeet
> I've only been using log4j for a few months now, and while reading > this mailing list, a question has been forming in my mind. It looks > like most people use an XML formatted configuration file. I am not > currently doing that, but I got wondering. Currently I'm using property files, to

RE: Log different categories to different logfile

2001-10-12 Thread Jon Skeet
> I would like to log diefferent log categories to different > logfiles but I dont see a way how to do this. Set up different appenders for different categories within your configuration file. Jon - To unsubscribe, e-mail: [EM

RE: No File Name & Line Number under UNIX

2001-10-11 Thread Jon Skeet
> Jon... you were absolutely right!! (see below)... > > ...So what's the best way to proceed? You have three options: 1) Turn off JITting (this will probably result in horrible performance) 2) Live with not getting line numbers] 3) Upgrade the VM/JIT to one which keeps line-numbers (eg HotSpot

RE: JON No File Name & Line Number under UNIX

2001-10-11 Thread Jon Skeet
[There's no need to mail me separately from the list, btw] > They are built with Forte ... with Debug = True > > Also ... I'm running JDK 1.3 on Windows, JDK 1.2 on Solaris. > Will that make a difference? Might well do - the JIT under 1.2 may not have been giving stack trace information. Try s

RE: No File Name & Line Number under UNIX

2001-10-11 Thread Jon Skeet
> I'm finding under UNIX that the location information for the > SECOND class > DOES appear in the log. But the location info for the FIRST > class does NOT > appear. Under windows they BOTH appear. > > I know this is strange. The lines in the configuration file > for the two > class' categor

RE: can I use email and message buffer as appenders?

2001-10-10 Thread Jon Skeet
> I'm new to log4j, so forgive me if this is a stupid question, > but how can I use email as an appender? See org.apache.log4j.net.SMTPAppender. > Also can I use an in-memory buffer as an > appender, and then retrieve the contents of that buffer at a > later stage? It should be fairly simple

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> Please find config file and test program attached. I guess I'm > misunderstanding something with respect to configuration, but > I can't see what. I think you'd be better off starting off with a *simple* test program - one that had a single appender (and not CompositeRollingAppender, which I c

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> By thresholds, are you referring to 'priority'? No, I'm referring to "threshold". Try using: on the appender you want to only receive events of the error priority and above. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> I seem to remember someone mentioning a way to do this... (quick > look at my email archive... Ahh, there it is) > On: Tue, 25 Sep 2001 09:01:35 -0400 > Written by: Stephen Levinson <[EMAIL PROTECTED]> > > He quoted the FAQ which stated: > > Is it possible to direct log outpu

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> I'm experiencing exactly the same - changing priority levels for the > different categories doesn't seem to have any effect on the logging. > > I'm waiting in anticipation for any input from the gurus... Could you give us a short but complete test: configuration files, test classes etc? I've n

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> The problem I'm encountering with the XML configuration, is that the > minimum threshold seems to get over written. I get debug > messages in the error log, even though I'm setting the threshold > for the error file log to 'error'. Could you show where you're doing that? I didn't see any thr

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> First, a quick question: Its my assumption that each log4j > category can have muliple appenders. Yes. > Each appender for a category can also have its own > priority. Well, each appender can have a *threshold*, which is a minimum priority level. Search for "threshold" in the mailing list

RE: Starter Questions

2001-10-04 Thread Jon Skeet
> I have just started to use log4j. After studying the > documentation I tried to make a first implementation in a > servlet. It seems to work so far, but I have some questions: > > In my configuration file I have made the following setting: > > log4j.rootCategory=DEBUG, FILE > log4j.appender.

RE: Date problem

2001-10-03 Thread Jon Skeet
> At 17:06 03.10.2001 +0100, you wrote: > > > Why creates RollingFileAppender only example.log and > > > example1.log? I need > > > exampleN.log files. > > > >That's a case of configuring MaxBackupIndex - just set it to > 15 to get > >files example1.log to example15.log, for example. > > It's po

RE: Date problem

2001-10-03 Thread Jon Skeet
> Why creates RollingFileAppender only example.log and > example1.log? I need > exampleN.log files. That's a case of configuring MaxBackupIndex - just set it to 15 to get files example1.log to example15.log, for example. > It's possible to create a file name like: > debug-MMDD.log? Ah, n

RE: Single Appender with different Layouts

2001-09-29 Thread Jon Skeet
> In my logger configuration i have several > cateogories and related multiple appenders. > Now my requirement is to log messages in different > layouts for ex. I don't want to include Date and time > information with all the messages but at the > Start/End of the application i need date/time

RE: SMTP Appender Problem

2001-09-28 Thread Jon Skeet
> I've got 3 classes: >- client ( Testclass ) >- amxsmtpapp ( SMTP Appender Class ) >- TriggerAfterXLogEvents ( Triggering Class ) > package amxsmtpapp; > import org.apache.log4j.spi.TriggeringEventEvaluator; > import org.apache.log4j.spi.LoggingEvent; > public

RE: SMTP Appender Problem

2001-09-27 Thread Jon Skeet
> I have a Problem with my SMTP Appender. > My program didn't found the triggering class, this is the ERROR message: Right, so it can't find the TriggerAfterXLogEvents class. Without further information about this class and how you've got log4j set up, we can't possibly help you any further.

RE: Class A fault in rolling-file algorithm(s)

2001-09-27 Thread Jon Skeet
> Will send the results to Jon Skeet who most kindly promised > to look into it. Like Stephen, I'd like to say thanks for the open post :) One thing though: I'll certainly look into any code you send me, but would you mind if others did too? I'm far from an expert on Lo

RE: Class A fault in rolling-file algorithm(s)

2001-09-27 Thread Jon Skeet
> I get the gist of the original message here... but what is your > reply? As I read it, Ceki's reply is basically saying, "Please follow the guidelines in this document - in other words, give us some more data to work with, etc." It's important that this gets fixed, but without more info

RE: Class A fault in rolling-file algorithm(s)

2001-09-27 Thread Jon Skeet
> Log4j users/developers > > I've now tried endless combinations of parameters to the different > rollingfile appenders (CompositeRollingAppender, > DailyRollingFileAppender, > RollingFileAppender) in log4j and they all make the > application hang after a > rollover-attempt. > > The applicatio

RE: retrieving Category references

2001-09-23 Thread Jon Skeet
> getInstance retrieves the Category from a static pool, > so it will only get the same reference when run within > the same VM. One slight nit-pick which may be important in servlet environments: getInstance will get the same reference when run within the same *classloader* (or rather, when th

RE: Beginner Questions

2001-09-21 Thread Jon Skeet
> Thanks. I got it in the archive. Goodo - it's nice to know it's there, as then I can direct others to it too :) > I hope it can be in CVS soon, so people doesn't have > to un-jar, compile, and jar it again into log4j.jar I'm afraid they'd have to do that even if it were in CVS, as there are

RE: Classpath

2001-09-21 Thread Jon Skeet
> I've created a special use appender by extending the > AppenderSkeleton class > and have it working as expected. It works as long as I > instantiate and > configure the appender within a class. > > When I try to declare and configure it via a property file, I get a > ClassNotFound exception.

RE: Beginner Questions

2001-09-21 Thread Jon Skeet
> Any idea where I can get the DatedFileAppender ? > I have tried to go to the cvs but couldn't find it. It's not in CVS yet, but may be available in the log4j-dev archives. If you can't find it, let me know and I'll mail you a copy. (Hopefully it'll get into CVS when Ceki has a bit more time af

RE: example.xml not found in jar file

2001-09-12 Thread Jon Skeet
> I have my log4j init file (example.xml) in a jar file > (current directory of > jar file). The jar is in the classpath. When I start the > application, it > doesn't find the file. How can I pinpoint the reason? How are you trying to tell log4j to initialise? Jon

RE: SMTPAppender exception

2001-09-12 Thread Jon Skeet
> I'm having trouble with the SMTPAppender. Hope someone can help. > When I use the SMTPAppender I get the following error: > log4j:ERROR Error occured while sending e-mail notification. > javax.mail.NoSuchProviderException: No provider for Address type: rfc822 This is a common problem with Ja

RE: Problems with DOMConfigurator.configure("configfile.xml")

2001-09-11 Thread Jon Skeet
> I get an compilation error when trying to compile the following line > DOMConfigurator.configure("configfile.xml"); > > The message is > Main

RE: Category Priorities

2001-09-07 Thread Jon Skeet
Having looked at this a bit further, I suspect I know what's going on. > However, if I try to obtain the Priority of my class at runtime using > cat.getPriority(), I receive a NullPointerException. Are you sure you don't mean if you try to *use* the Priority returned by cat.getPriority() you rec

RE: Category Priorities

2001-09-07 Thread Jon Skeet
> I am using class > > com.mycompany.product.MyApplication (which declares its own Category > with the same name) > > and my Log4J properties file specifies a priority of DEBUG for > com.mycompany.product classes > > - this is fine in use, with Log4J doing what it is supposed to. > > However,

RE: error in properties file, help me please...please..please..please

2001-09-07 Thread Jon Skeet
> Hi experts, > > here is my properties file, which is in > Web-inf/classes: > > log4j.rootCategory=R This line is the problem, I believe. It should be something like: log4j.rootCategory=debug, R (or info, or whatever - the first parameter is the priority though) Jon ---

RE: filter on appenders, not on category

2001-09-06 Thread Jon Skeet
> Is it possible to "filter" by target (appender), and not by > source (category). Yes - configure the Threshold parameter for the appender, eg: log4j.appender.logfile.Threshold=error Jon - To unsubscribe, e-mail: [EMAIL PROT

RE: Logging in a Multi threaded environment

2001-09-06 Thread Jon Skeet
> Currently we are considering log4j for our application > logger and so I have tried out the basic features of log4j > But i have a doubt when i try to log in a multithreaded > environment...DOES log4j PROVIDE A SYNCHRONIZED LOGGING MECHANISM?? Yes - or rather, it depends on the appende

RE: separate log files ??

2001-09-05 Thread Jon Skeet
> I now still have the following problem. I have two categories: > log4j.category.nl.unwired.sgs.sms.plugin=DEBUG, A > log4j.category.nl.unwired.sgs.sms=DEBUG, B > > Both A and B log in serparate log files. However the plugin > package also > logs in the B log file. > > I think this is what me

RE: SMTP Host and SMTP appender

2001-09-05 Thread Jon Skeet
> I am using Properties props = new Properties(); > props.setProperty(); > > Anyway, my mistake was I was using > Session session = Session.getDefaultInstance(props, null); Ah, right... and as Log4j is using Session.getDefaultInstance, only one was going to win. > I have now replaced it wi

RE: SMTP Host and SMTP appender

2001-09-05 Thread Jon Skeet
> However, I am not able to do this. Even though I set the smtp host in > the property before creating a session using JavaMail. My code still > uses the smtp host set in the log4j smtp appender. Despite my previous comment (ie log4j really *is* broken, and I'll be patching it) I suspect your co

RE: SMTP Host and SMTP appender

2001-09-05 Thread Jon Skeet
> I am logging critical errors in the system using SMTPAppender > in log4j. > It is working fine. My problem is that I want to send other > emails from > my system using a different SMTP host than the one used for logging. > > However, I am not able to do this. Even though I set the smtp host i

RE: Logging Exceptions

2001-09-05 Thread Jon Skeet
> I'm afraid you'd still have to make the choice in coding > simply because > you may not want to log some exceptions, but may want to log others. I > could see your point though if you were advocating configuring the > logging of exceptions on a class-by-class bases. > > For example you may wan

RE: Daily Log Files

2001-09-05 Thread Jon Skeet
> I've configured an xml based Logger class. What I'm trying to > accomplish now is to have a directory called "Logs", and inside > this directory a time stamped log file created daily. So basically > a log file that maintains daily log files. So today in the Logs > directory there would be

RE: Daily Log Files

2001-09-04 Thread Jon Skeet
> I've configured an xml based Logger class. What I'm trying to > accomplish now is to have a directory called "Logs", and inside > this directory a time stamped log file created daily. So basically > a log file that maintains daily log files. So today in the Logs > directory there would be

RE: Unable to set treshold on appender?

2001-09-03 Thread Jon Skeet
> However when I read the Javadoc, I see that ConsoleAppender inherits a > method setTreshold(priority) from org.apache.log4j.AppenderSkeleton No, it has setThreshold. There's an extra 'h' in there. You therefore need: log4j.appender.logfile.threshold=error Jon

RE: seperate PropertyConfigurator file

2001-09-02 Thread Jon Skeet
> Anyone done this? If so, where are you putting this props > file ... is it looking in the app classpath? No, you specify the file location - specify the complete, absolute filename and things should work. > Another question, when using a RollingFileAppender, where > would the log file be pla

RE: [beginner] How to send logs to different Appenders?

2001-08-31 Thread Jon Skeet
> I'm followed this conversation step by step and am still not able to write those 3 lines of code :-) write > log4j.rootCategory=INFO > log4j.category.ufa=DEBUG, A2 > log4j.category.ufa=INHERITED, A1 Of those last two lines, only one will be picked up. Two lines can't have the same key (or

RE: mixed logfilename configuration

2001-08-31 Thread Jon Skeet
> in short: we need to set (a part of) the logfile path from within our > application (that reads it from the application config) and want to > set the logfile name from the log4j configuration file. How about something like: log4j.appender.logfile.File = %logbase%/myapplication/database/logfi

RE: [beginner] How to send logs to different Appenders?

2001-08-30 Thread Jon Skeet
> Hi Jon.so I have tried to modify my lo4j.properties of > the basic example > that comes with distribution. > That's what I'd like to obtain: > > Class MyApp--->Console Appender > Class com.foo.Bar-->File Appender > > Here's how I have structured my log4j.properties: > > log

RE: [beginner] How to send logs to different Appenders?

2001-08-30 Thread Jon Skeet
> >Get each class to use a different category > > That's exactly my problem. It's not clear to me how to use a different > category to each class. > > From the examples I only see piaces of codes like this : > > Category cat = Category.getInstance(MyApp.class.getName()); > Category cat2 = Cate

RE: [beginner] How to send logs to different Appenders?

2001-08-30 Thread Jon Skeet
> I'm new to Log4j. Can anyone tell me how to direct log > messages belonging to a class to one appender and > messages belonging to other classes to another appender? Get each class to use a different category, and then specify the appenders by category, eg: // Everything goes to appender A1 lo

Disabling priority

2001-08-30 Thread Jon Skeet
Hi, I've recently switched over to Log4j, and I'm currently missing one thing. There seems to be no pseudo-priority for "none", eg: log4j.rootCategory=DEBUG, MyAppender log4j.category.Do.Not.Log.Anything=NONE to make sure that *nothing* gets logged for the Do.Not.Log.Anything category, even tho