The configuration classes do environment variable substitution, thus you
can use $HOME or something else.  I don't recall if it uses platform
specific conventions ($HOME, %HOME%), just Unix conventions ($HOME), or
whether you can/must use delimiters ($(HOME), ${HOME}).  There is some
method called "subst" or something that does it, buried in there
somewhere.

Cheers!
 
Tom Hawker
Home    408-274-4128
Office  408-576-6591
Mobile  408-835-3643

-----Original Message-----
From: Peter Steiner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 17, 2005 09:05 AM
To: log4cxx-user@logging.apache.org
Subject: Directory for FileAppender

What is the preferred way of setting the directory in which logfiles are
stored? I'd like to have in my configuration file only the basename of
the logfile, the directory should be determined by the application,
depending on the user context (e.g. $HOME/logs on Unixen or
%USERPROFILE%\somewhere).

Is there another way than dynamically changing the working directory
of my application? What if I'd like to spread several logfiles to
different directories?

Regards, Peter
-- 
    _   _        Peter Steiner <[EMAIL PROTECTED]>
  / /_/ /        Hug-Witschi AG <http://www.hugwi.ch/>
 /  _  /         Electronic Engineering
/_/ /_/  _   _   Auriedstrasse 10
   / / / / / /   CH-3178 Boesingen
  / /_/ /_/ /    Tel  +41 31 740 44 44
 /_ _ _ _ _/     Fax  +41 31 740 44 45




IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not 
intended for you, please delete it immediately unread.  The internet cannot 
guarantee that this communication is free of viruses, interception or 
interference and anyone who communicates with us by email is taken to accept 
the risks in so doing.  Without limitation, OOCL and its affiliates accept no 
liability whatsoever and howsoever arising in connection with the use of this 
email.  Under no circumstances shall this email constitute a binding agreement 
to carry or for provision of carriage services by OOCL, which is subject to the 
availability of carrier's equipment and vessels and the terms and conditions of 
OOCL's standard bill of lading which is also available at http://www.oocl.com.

Reply via email to