Skip to content

Instantly share code, notes, and snippets.

@tekk555
Last active December 27, 2015 21:39
Show Gist options
  • Save tekk555/7392721 to your computer and use it in GitHub Desktop.
Save tekk555/7392721 to your computer and use it in GitHub Desktop.
log4j.propertiesの指定方法
1.log4j.propertiesをClassPathの通っている場所に配置する
2.JVMオプションで指定する
-Dlog4j.configuration=file:///c/conf/log4j.properties
3.プログラムからPropertyConfigurator.configureを使用して設定する。
import org.apache.log4j.PropertyConfigurator;
PropertyConfigurator.configure(replacedPath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment