|
|
|
@ -977,6 +977,8 @@ public class ServerProperties
|
|
|
|
|
valve.setPrefix(this.accesslog.getPrefix());
|
|
|
|
|
valve.setSuffix(this.accesslog.getSuffix());
|
|
|
|
|
valve.setRenameOnRotate(this.accesslog.isRenameOnRotate());
|
|
|
|
|
valve.setRequestAttributesEnabled(
|
|
|
|
|
this.accesslog.isRequestAttributesEnabled());
|
|
|
|
|
valve.setRotatable(this.accesslog.isRotate());
|
|
|
|
|
factory.addEngineValves(valve);
|
|
|
|
|
}
|
|
|
|
@ -1032,6 +1034,12 @@ public class ServerProperties
|
|
|
|
|
*/
|
|
|
|
|
private boolean renameOnRotate;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set request attributes for IP address, Hostname, protocol and port used
|
|
|
|
|
* for the request.
|
|
|
|
|
*/
|
|
|
|
|
private boolean requestAttributesEnabled;
|
|
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
|
return this.enabled;
|
|
|
|
|
}
|
|
|
|
@ -1088,6 +1096,14 @@ public class ServerProperties
|
|
|
|
|
this.renameOnRotate = renameOnRotate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isRequestAttributesEnabled() {
|
|
|
|
|
return this.requestAttributesEnabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRequestAttributesEnabled(boolean requestAttributesEnabled) {
|
|
|
|
|
this.requestAttributesEnabled = requestAttributesEnabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|