Go to file
Eryk Szymanski 66252ed8ea Enable sshd_log and httpd_log to use log4j config
At the moment log4j configuration is a bit inconsistent: it is
possible to configure error_log and gc_log using file provided
with log4j.configuration system property, however httpd_log and
sshd_log configuration is hard-coded in corresponding classes
(HttpLog and SshLog).

Make logs configuration more consistent by using log4j for all
logs. If log4j.configuration variable is not set, log behavior
remains intact and code-level log configuration will be used.

In case of log4.configuration points to log4j.properties file the
hard-coded configuration will be ommited and log4j.properties will
be used instead.

In addition shouldConfigureLogSystem() call moved from ErrorLogFile
to LogUtil in com.google.gerrit.util package and removed deprecated
reference to log4j LogManager.DEFAULT_CONFIGURATION_KEY so that
gerrit common does not require log4j.

Two inner MyLayout classes (one from SshLog and one from HttpLog)
have been extracted to separate files and renamed accordingly to
enable to use them from log4j.properties file if required. At the
moment those are extracted as is - refactoring will follow.

Change-Id: Icb1a3787b98392a9df9bb2afa4dc857f8cfada3a
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
2013-11-19 13:06:05 -08:00
2013-05-21 20:28:56 -07:00
2013-05-21 20:28:56 -07:00
2013-11-15 10:11:30 -08:00
2013-11-15 10:25:44 +01:00
2013-11-18 04:12:35 +00:00
2013-09-20 19:41:26 -07:00
2013-11-05 21:38:53 +00:00
2013-11-09 07:45:00 +01:00
2013-11-07 19:52:15 +01:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2013-10-17 23:09:00 +09:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB