From 9c7a3604527ea467266ae1fbd427ea2c6f83af3d Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 09 Feb 2012 19:56:58 -0500
Subject: [PATCH] Documented overriding default log4j configuration (issue 53)
---
docs/01_setup.mkd | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd
index 1a3b9a9..624ef53 100644
--- a/docs/01_setup.mkd
+++ b/docs/01_setup.mkd
@@ -93,6 +93,14 @@
**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 <optional_gitblit_args>
+
+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
--
Gitblit v1.9.1