|
|
Sponsor |
Re: Directory for FileAppender: msg#00047apache.logging.log4cxx.user
In the current CVS HEAD (see http://issues.apache.org/jira/browse/LOGCXX-76), I've emulated a couple of the Java properties (java.io.tmpdir, user.home, user.dir) that can now be used in both log4j and log4cxx for providing a base for file specifications. The real missing one is the directory of the current configuration file which one might assume would be used to resolve relative paths included in configuration files, but isn't. See http://marc.theaimsgroup.com/?l=log4j-dev&m=110992261803810&w=2 for comments on log4j on this. I'd expect that I may introduce "${base.dir}" in both log4j and log4cxx to represent it and likely change the default resolution for new namespace XML configuration files. The syntax for property expansion is ${propname}, so you can do: log4j.appender.D3.File=${user.home}/mylogfile You could also use environment variables (log4cxx only): log4j.appender.D3.File=${LOG_BASE}/mylogfile
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Directory for FileAppender, thomas.hawker |
|---|---|
| Next by Date: | Problem in installing log4cxx in Solaris 8 sparc , Jayant Dusane |
| Previous by Thread: | Directory for FileAppender, Peter Steiner |
| Next by Thread: | RE: Directory for FileAppender, thomas.hawker |
| 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 |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|