Project

General

Profile

« Previous | Next » 

Revision 2594

Added by sgarg about 19 years ago

added code to define LOG_CONFIG_NAME

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
161 161
    private static final String CONFIG_DIR = "WEB-INF";
162 162

  
163 163
    private static final String CONFIG_NAME = "metacat.properties";
164

  
164
     
165
    public static String LOG_CONFIG_NAME; 
166
	 
165 167
    /**
166 168
     * Initialize the servlet by creating appropriate database connections
167 169
     */
......
175 177
            // Initialize the properties file for our options
176 178
            String dirPath = context.getRealPath(CONFIG_DIR);
177 179
            File propertyFile = new File(dirPath, CONFIG_NAME);
180

  
181
    	    LOG_CONFIG_NAME = dirPath + "/log4j.properties";
182
	    
178 183
            Options options = null;
179 184
            try {
180 185
                options = Options.initialize(propertyFile);

Also available in: Unified diff