|
|
@ -1006,6 +1006,7 @@ public class ServerProperties
|
|
|
|
this.accesslog.isRequestAttributesEnabled());
|
|
|
|
this.accesslog.isRequestAttributesEnabled());
|
|
|
|
valve.setRotatable(this.accesslog.isRotate());
|
|
|
|
valve.setRotatable(this.accesslog.isRotate());
|
|
|
|
valve.setBuffered(this.accesslog.isBuffered());
|
|
|
|
valve.setBuffered(this.accesslog.isBuffered());
|
|
|
|
|
|
|
|
valve.setFileDateFormat(this.accesslog.getFileDateFormat());
|
|
|
|
factory.addEngineValves(valve);
|
|
|
|
factory.addEngineValves(valve);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1060,6 +1061,11 @@ public class ServerProperties
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean renameOnRotate;
|
|
|
|
private boolean renameOnRotate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Date format to place in log file name.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private String fileDateFormat = ".yyyy-MM-dd";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Set request attributes for IP address, Hostname, protocol and port used for
|
|
|
|
* Set request attributes for IP address, Hostname, protocol and port used for
|
|
|
|
* the request.
|
|
|
|
* the request.
|
|
|
@ -1127,6 +1133,14 @@ public class ServerProperties
|
|
|
|
this.renameOnRotate = renameOnRotate;
|
|
|
|
this.renameOnRotate = renameOnRotate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getFileDateFormat() {
|
|
|
|
|
|
|
|
return this.fileDateFormat;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setFileDateFormat(String fileDateFormat) {
|
|
|
|
|
|
|
|
this.fileDateFormat = fileDateFormat;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isRequestAttributesEnabled() {
|
|
|
|
public boolean isRequestAttributesEnabled() {
|
|
|
|
return this.requestAttributesEnabled;
|
|
|
|
return this.requestAttributesEnabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|