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 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:

smb://192.168.1.100/log/xxx.log

Here are some links:

Commons VFS home page:
http://commons.apache.org/vfs/

Supported file systems (see the CIFS section):
http://commons.apache.org/vfs/filesystems.html

VFSLogFilePatternReceiver javadoc:
http://logging.apache.org/chainsaw/apidocs/org/apache/log4j/chainsaw/vfs/VFSLogFilePatternReceiver.html

Note, Commons VFS has third-party dependencies you'll need to download 
depending on the file system you're using:
http://commons.apache.org/vfs/download.html
(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:
http://logging.apache.org/chainsaw/distributionnotes.html



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

Telephone:      503.224.7496
Cell:           503.997.1367
Fax:            503.222.0185

[EMAIL PROTECTED]

www.comotivsystems.com



-----Original Message-----
From: [EMAIL PROTECTED] 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
 
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 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,
Doost


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

Reply via email to