Can you email your log.properties file?

-billc
-----Original Message-----
From: Amit Bhutra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 11:22 AM
To: [EMAIL PROTECTED]
Subject: new bie - Logging to different files depending on the level

Hi,
I have specified 2 RollingFileAppender in the .properties file.

In my java code, i have...

private static String resource = "/Log.properties";
private static URL configFileResource = Log.class.getResource(resource);

static
{
   PropertyConfigurator.configure(configFileResource);
}

private static Logger Log1 = Logger.getLogger("Log1");
private static Logger Log2 = Logger.getLogger("Log2");

And then i call Log1.debug(msg).

I see that the message is in both Log1.log and Log2.log.
However, i want Log1.debug(msg) to log into Log1.log and
Log2.debug(msg) to log into Log2.log.

Let me know if anyone wants to see the code and property file.

TIA,
Amit

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to