jalkanen/speed4j — Issue #15: Allow clients to change the config file name
Author: patricioe
Created: 2011-11-15 00:10:11+00:00
State: open

I think it would be useful (like log4j works) to allow clients to specify different config files by making the speed4j load the config file based on a system variable.

like:

private static final String SPEED4J_CONFIG_KEY = "speed4j.config";

if ( ! locationSet() ) {
System.setProperty(SPEED4J_CONFIG_KEY, DEFAULT_LOCATION);
}

I'll be happy to contribute the patch if it makes sense to you.

the problem we see in Hector (based on an email in the email list) is that users that package their binaries, the speed4j.properties used in Hector gets copied and they end up with 2 versions of speed4j config files in their classpath.