Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

use environment variables in logging.properties file

843789Jul 21 2009 — edited Jul 22 2009
is there a way to use environment variables in logging.properties file?

like this -
java.util.logging.FileHandler.pattern = {$MY_BASE_LOG_FOLDER}/myapp1/log/123%g.log
do I have to write a custom logging.properties loader? if yes, then are there any examples on this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2009
Added on Jul 21 2009
11 comments
3,098 views