From: Rhino on 28 Apr 2010 12:10 I'm wrestling with a challenging problem involving the java.util.logging code, specifically a condition discussed in Bug ID 6244047. Something that might help me a lot is some information about some code used in the logging.properties file found in JRE/lib. Referring specifically to the logging.properties file in a Java 6 JDK, one of the lines says: java.util.logging.FileHandler.pattern = %h/java%u.log It would appear that %h and %u in the preceding line are variables but I am at a loss to understand what values they have or where those values are set. Can anyone clue me in? The comment above that line says only that the "default file output in the user's home directory" but I'm not clear on whether they are referring to OS home directory (I'm using Windows XP SP2) or the Java home directory. It's also possible that the values of %h and %u may be getting overridden inappropriately somewhere, even if they were set correctly in the first place, so I'd like to know how %h and %u are being set and where they might be getting overridden. I hope someone more familiar with java logging can clue me in. That should enable me to solve the bigger problem myself or at least rule out the most obvious suspect. -- Rhino
From: markspace on 28 Apr 2010 12:34 Rhino wrote: > The comment above that line says only that the "default file output in the > user's home directory" User's home directory! Like /usr/rhino or C:\Users\Rhino or /home/rhino.
From: Tom Anderson on 28 Apr 2010 19:57 On Wed, 28 Apr 2010, markspace wrote: > Rhino wrote: > >> The comment above that line says only that the "default file output in the >> user's home directory" > > User's home directory! Like /usr/rhino or C:\Users\Rhino or /home/rhino. Is there anywhere it would be /usr/rhino? On OS X, it would be /Users/Rhino, FWIW. On unix systems configured for large numbers of users, it might well be /home/r/rhino (it's broken up alphabetically). On unix systems which organise users by primary group (and there are some), it would be /home/pachyderms/rhino. All of which is useless information, of which i am a veritable mine. More importantly, why on earth is java writing logs to home directories? That's dreadful behaviour! tom -- It's Brains you want!
From: Arne Vajhøj on 28 Apr 2010 20:09 On 28-04-2010 12:10, Rhino wrote: > I'm wrestling with a challenging problem involving the java.util.logging > code, specifically a condition discussed in Bug ID 6244047. Something that > might help me a lot is some information about some code used in the > logging.properties file found in JRE/lib. > > Referring specifically to the logging.properties file in a Java 6 JDK, one > of the lines says: > > java.util.logging.FileHandler.pattern = %h/java%u.log > > It would appear that %h and %u in the preceding line are variables but I am > at a loss to understand what values they have or where those values are > set. Can anyone clue me in? They are described in: http://java.sun.com/javase/6/docs/api/java/util/logging/FileHandler.html > The comment above that line says only that the "default file output in the > user's home directory" but I'm not clear on whether they are referring to > OS home directory (I'm using Windows XP SP2) or the Java home directory. > It's also possible that the values of %h and %u may be getting overridden > inappropriately somewhere, even if they were set correctly in the first > place, so I'd like to know how %h and %u are being set and where they might > be getting overridden. The above link says: "%h" the value of the "user.home" system property so it is OS home directory. Arne
From: Arne Vajhøj on 28 Apr 2010 20:10 On 28-04-2010 19:57, Tom Anderson wrote: > On Wed, 28 Apr 2010, markspace wrote: > >> Rhino wrote: >> >>> The comment above that line says only that the "default file output >>> in the user's home directory" >> >> User's home directory! Like /usr/rhino or C:\Users\Rhino or /home/rhino. > > Is there anywhere it would be /usr/rhino? > > On OS X, it would be /Users/Rhino, FWIW. On unix systems configured for > large numbers of users, it might well be /home/r/rhino (it's broken up > alphabetically). On unix systems which organise users by primary group > (and there are some), it would be /home/pachyderms/rhino. All of which > is useless information, of which i am a veritable mine. > > More importantly, why on earth is java writing logs to home directories? > That's dreadful behaviour! If it has to pick a directory that: - is known to exist - where the app has write permission - where files does not get deleted - conceptually will exist on all platforms (or at least as many as possible) then what would you suggest? Arne
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Handling extremely large input files Next: Head First Java vs. Think in Java |