Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

user.home

 
Ranch Hand
Posts: 503
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All:
In the Java JDK1.3 is there any reference to a field/package/name called "user.home"?
The only thing I could find was System.getProperty(); returns the user.home. Meaning the user's home directory.
Reason I am asking is our lead tech architect (20 yrs experience in this game) - said to use user.home in Java as a starting point for creating a logging application for a web-site. Logging application as in errors/exceptions not as in cutting trees.
Thanks,
John Coxey
(jpcoxey@aol.com)
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what your architect wants with user.home - which is AFAIK just, as you note, a system property containing the user's home directory. But as far as logging is concerned, don't waste your time, use Log4J. The de facto standard in Java logging, to the extent that the logging facilities which will be part of the JDK 1.4 core are patterned after it.
- Peter
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At least, from the main author of Log4J point of view, it is not: http://jakarta.apache.org/log4j/docs/critique.html
jdk1.4 version is different.

SCJD Study Group has been moved to http://www.developergroup.org/
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
However, I like Log4J very much!
 
Peter den Haan
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Roseanne Zhang:
At least, from the main author of Log4J point of view, it is not: http://jakarta.apache.org/log4j/docs/critique.html

Roseanne, I'm not sure where you got the impression that the JDK 1.4 logging API is not patterned after Log4J. According to the author you quote, "the java.util.logging API will resemble log4j [...] The way the two APIs name their components may differ but otherwise their degree of resemblance is quite striking." Look in the follow-up critique to the one you quote.
- Peter
NB. "patterned after" != "identical to".
[This message has been edited by Peter den Haan (edited November 01, 2001).]
reply
    Bookmark Topic Watch Topic
  • New Topic