|
|
Choosing A Webhost: |
RE: Directory for FileAppender: msg#00046apache.logging.log4cxx.user
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:peter.steiner@xxxxxxxx] Sent: Thursday, March 17, 2005 09:05 AM To: log4cxx-user@xxxxxxxxxxxxxxxxxx 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 <peter.steiner@xxxxxxxx> / /_/ / 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.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Directory for FileAppender, Peter Steiner |
|---|---|
| Next by Date: | Re: Directory for FileAppender, Curt Arnold |
| Previous by Thread: | Re: Directory for FileAppender, Curt Arnold |
| Next by Thread: | Problem in installing log4cxx in Solaris 8 sparc , Jayant Dusane |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |