RE: Missing location thru SocketServer (was: Interesting Problem)

2002-11-01 Thread Kohinoor Lal Verma (EHS)
Hi Gautam, This has helped me a lot. I had posted a similar question a month back (on 30/9/02 with subject :SocketAppender help required). Today I've got my answer. Thanx a ton to you. Rgds Kohinoor - Kohinoor Lal Verma Senior Systems Engineer Ericsson Mobile Com

Re: Missing location thru SocketServer (was: Interesting Problem)

2002-11-01 Thread Thomas Saxtoft
> Found the problem. Sure you did :-) I have the impression that you have been using a lot of time on this problem. I really appreciate the effort you have, and should you one day pass thru Copenhagen I'll give a beer :-) Thank you, Thomas Saxtoft -- To unsubscribe, e-mail:

Custom property configuration for Logger wrapper

2002-11-01 Thread Jeff Nichols
Hi, I'm making a wrapper for the Logger class that will have some additional methods defined. I would like the configuration for these methods to be editable through the log4j.properties file. The wrapper would be something like this: public class MyLogger { private Logger logger; [sta

isDebugEnabled() vs. isErrorEnabled()

2002-11-01 Thread Jung, Eric (Contractor)
Just curious why there are methods for isDebugEnabled() and isInfoEnabled(), but not isWarnEnabled(), isErrorEnabled(), and isFatalEnabled()? Commons-logging has methods for all of these. I'm sure there must be a good reason (i.e., historical ones), but I can't figure it out. Can anyone shed some

Re: isDebugEnabled() vs. isErrorEnabled()

2002-11-01 Thread Jacob Kjome
Hello Eric, This is because you would usually want warning and fatal messages being logged whenever they occur. They are usually encapsulated by a conditional checking for null value or in a catch clause for when an exception happens. These things shouldn't normally happen unless there is some b

Specifying default configuration file for Tomcat

2002-11-01 Thread Bradley M. Handy
I've read the short manual, and I've seen how to specify the default configuration file when starting Tomcat. However, I was wondering if my configuration file is a couple of directory levels down from "WEB-INF/classes", which notation should I use: Dot notation: "dir1.dir2.config-fil

RE: Specifying default configuration file for Tomcat

2002-11-01 Thread Shapira, Yoav
Hi, You're specifying the path to a file. Use the File.separator for your system. On Unix, that / normally, and on windows \. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Bradley M. Handy [mailto:bhandy@;arbor.edu] >Sent: Friday, November 01, 2002 1:36 PM >To: [

RE: isDebugEnabled() vs. isErrorEnabled()

2002-11-01 Thread Jung, Eric (Contractor)
Yes, Jacob, your philosophy about when debug/info/warn/error/fatal messages should be used helps clarify things. I'm wondering why the commons-logging folks didn't follow that same philosophy. Not that it matters so much, but I recently had to "down-grade" two applications that wrapped log4j with

RE: Specifying default configuration file for Tomcat

2002-11-01 Thread Bradley M. Handy
That helps. I don't remember it saying that in the documentation. I wasn't sure if I was specifying a resource or file path. Thank you for your help. Brad Handy -Original Message- From: Shapira, Yoav [mailto:Yoav.Shapira@;mpi.com] Sent: Friday, November 01, 2002 1:35 PM To: Log4J User

Re[2]: Specifying default configuration file for Tomcat

2002-11-01 Thread Jacob Kjome
Hello Yoav, That implies loading it via a File object which is not guaranteed to work in a servlet environment because you can't control whether your app is loaded off the filesystem or directly from a .war file. Load it as a resource, not as a file. InputStream stream = this.getClass().getResou