Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2008, 02:50 PM
Registered User
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Gap_Tooth
Default Variable substitution in logging.properties

In the configuration I'm building, we have three instances of Tomcat in separate JVMs running on a single machine. We have given each of these different names (tomcat_vm01, tomcat_vm02, etc.). In order to minimize the amount of duplicated configuration across instances, I've built a single logging.properties file that works for all instances using variable substitution; I pass JVM variable settings in when I start Tomcat, and the VM_NAME variable will be substituted into the logging.properties file, creating a separate log file for each Tomcat instance.

This configuration works fine if my log prefix looks like this:
4admin.org.apache.juli.FileHandler.prefix = ${VM_NAME}.admin.

Ideally, however, the log's prefix would be:
4admin.org.apache.juli.FileHandler.prefix = admin.${VM_NAME}.

The first case works perfectly, and in the second case, the variable doesn't resolve. Does anyone have any idea what may be causing this issue?






Similar Threads
Thread Thread Starter Forum Replies Last Post
why isn't CURL logging me in ? jjk2 Beginning PHP 1 October 5th, 2008 07:29 PM
Correct my xslt for data substitution asap XSLT 0 July 29th, 2006 03:42 PM
SSIS - Built-In Logging / Custom Logging ivobecker23 SQL Server 2005 0 April 21st, 2006 05:41 AM
Substitution for CodeContextObject MKri VB.NET 2002/2003 Basics 0 August 20th, 2004 03:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.