Re: Variable expansion in PropertyConfigurator

2008-08-14 Thread Curt Arnold
On Aug 14, 2008, at 11:08 PM, Scott Heaberlin wrote: Great idea, Paul. Following your idea, I also had to take the following steps (posted here to leave an answer in the archives): - use ${log4j.user.home} in my log4j.properties - in my main() method, *very first* I obtain System.getProperty(

Re: Variable expansion in PropertyConfigurator

2008-08-14 Thread Scott Heaberlin
Great idea, Paul. Following your idea, I also had to take the following steps (posted here to leave an answer in the archives): - use ${log4j.user.home} in my log4j.properties - in my main() method, *very first* I obtain System.getProperty("user.home") and .replace('\\', '/') in it, sending the r

Re: Variable expansion in PropertyConfigurator

2008-08-14 Thread Paul Smith
The only workaround I can think of is to subclass FileAppender, give it a setter method called setSystemPropertyDirPrefix, then in log4j.properties refrain from File=${user.home}. Instead, I'd use SystemPropertyDirPrefix=user.home (no variable) and within the coded FileAppender subclass do the S

Variable expansion in PropertyConfigurator

2008-08-14 Thread Scott Heaberlin
Hello Log4jers, I've been a user of log4j for nearly 8 years now. Tried other frameworks; still using good ole' log4j. I did a brief archive search for this question and found no similar ones so forgive me if this has been asked before but I did at least attempt to look. I think I am having som

Re: strange behavior of my log4j.xml configuration

2008-08-14 Thread Jacob Kjome
On Wed, 13 Aug 2008 19:25:03 -0700 (PDT) lanes <[EMAIL PROTECTED]> wrote: Hi Jake, First thanks for your quick reply. What do you mean ensuring each application will use their own respective configuration? Is it by reconfigure it using DOMConfigure / PropertyConfigurator explicitly inside ea

Re: ChainSaw - accessing a file on a VM

2008-08-14 Thread Curt Arnold
On Aug 14, 2008, at 11:04 AM, Curt Arnold wrote: Looks like you'd be better off using the shared folders capabilities of your VM software and access the log file with a local path name. Or you could use NET USE to map the share to a drive letter and then use the drive letter in the URL.

Re: ChainSaw - accessing a file on a VM

2008-08-14 Thread Curt Arnold
On Aug 14, 2008, at 8:36 AM, Mehyar Badii wrote: :-) Yes, all 5 are needed when using FireFox and also in ChainSaw. Internet Explorer and Windows Explorer do with 2! I tried your suggestion (no passwords) and no success. Any other suggestions? Best regards, Mehyar What you are looking at

RE: ChainSaw - accessing a file on a VM

2008-08-14 Thread Scott Deboy
If this file were accessible via any of the protocols supported by Jakarta Commons VFS, you could use VFSLogFilePatternReceiver to provide credentials. If it's windows authentication, you could embed your credentials in the URI using: smb://myusername:[EMAIL PROTECTED]/log/xxx.log You can al

Re: ChainSaw - accessing a file on a VM

2008-08-14 Thread Mehyar Badii
:-) Yes, all 5 are needed when using FireFox and also in ChainSaw. Internet Explorer and Windows Explorer do with 2! I tried your suggestion (no passwords) and no success. Any other suggestions? Best regards, Mehyar 2008/8/14 Jacob Kjome <[EMAIL PROTECTED]> > On Thu, 14 Aug 2008 13:24:26 +0200 >

Re: ChainSaw - accessing a file on a VM

2008-08-14 Thread Jacob Kjome
On Thu, 14 Aug 2008 13:24:26 +0200 "Aux Board" <[EMAIL PROTECTED]> wrote: Greetings! Sorry to ask a somewhat trivial question, but I am using ChainSaw to display logging information on a VM using LogFilePatternReceiver. I am setting the fileURL in the following manner and it works fine: file:

ChainSaw - accessing a file on a VM

2008-08-14 Thread Aux Board
Greetings! Sorry to ask a somewhat trivial question, but I am using ChainSaw to display logging information on a VM using LogFilePatternReceiver. I am setting the fileURL in the following manner and it works fine: file:/192.168.1.100/log/xxx.log However, to access this log file I am reques