logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Deboy" <sde...@comotivsystems.com>
Subject RE: ChainSaw - accessing a file on a VM
Date Thu, 14 Aug 2008 16:00:00 GMT
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:


You can also set the 'promptForUserInfo' param on the receiver to true to get a username/password
prompt, if you don't want to embed credentials in your receiver config file, and then use:


Here are some links:

Commons VFS home page:

Supported file systems (see the CIFS section):

VFSLogFilePatternReceiver javadoc:

Note, Commons VFS has third-party dependencies you'll need to download depending on the file
system you're using:
(in your case, commons logging and jCIFS)

Also, follow the directions on this Chainsaw page to use VFS and other receivers which have
external dependencies:

Scott Deboy
111 SW Columbia Street Ste. 950
Portland, OR  97201

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185



-----Original Message-----
From: mehyar.badii@gmail.com on behalf of Aux Board
Sent: Thu 8/14/2008 4:24 AM
To: Log4J Users List
Subject: ChainSaw - accessing a file on a VM

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:

However, to access this log file I am requested to login to the VM (I work
around it by opening the above location using Windows Explorer which prompts
me for a logon). Is there a way that I can enter the userid and password
from within the above statement? Also if that's possible, what if there is
no password for a given userid? How can I specify a null password?

Thank you,

View raw message