Allow external log4j.properties to use HttpLogLayout

When using an external custom log4j.properties using the 
-Dlog4j.configuration option, you may need to keep the 
ability to log HTTP activity using the Gerrit HttpLogLayout.

Change-Id: Ibd4b36736fa0f716c346d41f5586f8e66a5d1431
This commit is contained in:
Luca Milanesio 2014-03-02 17:58:13 +00:00
parent 25cae0e5ac
commit 8a20298199

View File

@ -26,7 +26,7 @@ public final class HttpLogLayout extends Layout {
private long lastTimeMillis;
private String lastTimeString;
HttpLogLayout() {
public HttpLogLayout() {
final TimeZone tz = TimeZone.getDefault();
dateFormat = new SimpleDateFormat("dd/MMM/yyyy:HH:mm:ss Z");
dateFormat.setTimeZone(tz);