From: James Moger Date: Fri, 10 Feb 2012 00:56:58 +0000 (-0500) Subject: Documented overriding default log4j configuration (issue 53) X-Git-Tag: v0.9.0~99 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c7a3604527ea467266ae1fbd427ea2c6f83af3d;p=gitblit.git Documented overriding default log4j configuration (issue 53) --- diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd index 1a3b9a9c..624ef53c 100644 --- a/docs/01_setup.mkd +++ b/docs/01_setup.mkd @@ -93,6 +93,14 @@ Command-Line parameters override the values in `gitblit.properties` at runtime. **Example** java -jar gitblit.jar --userService c:\myrealm.config --storePassword something + +#### Overriding Gitblit GO's Log4j Configuration + +You can override Gitblit GO's default Log4j configuration with a command-line parameter to the JVM. + + java -Dlog4j.configuration=file:///home/james/log4j.properties -jar gitblit.jar + +For reference, here is [Gitblit's default Log4j configuration](https://github.com/gitblit/gitblit/blob/master/src/log4j.properties). It includes some file appenders that are disabled by default. ## Running Gitblit behind Apache