Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Created October 21, 2014 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrichardsz/afbe8914539f03576fcc to your computer and use it in GitHub Desktop.
Save jrichardsz/afbe8914539f03576fcc to your computer and use it in GitHub Desktop.
Direct Spring log4j path configuration
<bean id="log4jInitialization"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass"
value="org.springframework.util.Log4jConfigurer" />
<property name="targetMethod" value="initLogging" />
<property name="arguments">
<list>
<value>../../conf/log4j.properties</value>
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment