|
|
@ -956,7 +956,7 @@ public class ServerProperties
|
|
|
|
valve.setPrefix(this.accesslog.getPrefix());
|
|
|
|
valve.setPrefix(this.accesslog.getPrefix());
|
|
|
|
valve.setSuffix(this.accesslog.getSuffix());
|
|
|
|
valve.setSuffix(this.accesslog.getSuffix());
|
|
|
|
valve.setRenameOnRotate(this.accesslog.isRenameOnRotate());
|
|
|
|
valve.setRenameOnRotate(this.accesslog.isRenameOnRotate());
|
|
|
|
valve.setRotatable(this.accesslog.isRotatable());
|
|
|
|
valve.setRotatable(this.accesslog.isRotate());
|
|
|
|
factory.addEngineValves(valve);
|
|
|
|
factory.addEngineValves(valve);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1002,14 +1002,14 @@ public class ServerProperties
|
|
|
|
private String suffix = ".log";
|
|
|
|
private String suffix = ".log";
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Defer inclusion of the date stamp in the file name until rotate time.
|
|
|
|
* Enable access log rotation.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean renameOnRotate;
|
|
|
|
private boolean rotate = true;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Enable access log rotation.
|
|
|
|
* Defer inclusion of the date stamp in the file name until rotate time.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private boolean rotatable = true;
|
|
|
|
private boolean renameOnRotate;
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
public boolean isEnabled() {
|
|
|
|
return this.enabled;
|
|
|
|
return this.enabled;
|
|
|
@ -1051,6 +1051,14 @@ public class ServerProperties
|
|
|
|
this.suffix = suffix;
|
|
|
|
this.suffix = suffix;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isRotate() {
|
|
|
|
|
|
|
|
return this.rotate;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setRotate(boolean rotate) {
|
|
|
|
|
|
|
|
this.rotate = rotate;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isRenameOnRotate() {
|
|
|
|
public boolean isRenameOnRotate() {
|
|
|
|
return this.renameOnRotate;
|
|
|
|
return this.renameOnRotate;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1059,13 +1067,6 @@ public class ServerProperties
|
|
|
|
this.renameOnRotate = renameOnRotate;
|
|
|
|
this.renameOnRotate = renameOnRotate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isRotatable() {
|
|
|
|
|
|
|
|
return this.rotatable;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setRotatable(boolean rotatable) {
|
|
|
|
|
|
|
|
this.rotatable = rotatable;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1309,21 +1310,14 @@ public class ServerProperties
|
|
|
|
if (this.directBuffers != null) {
|
|
|
|
if (this.directBuffers != null) {
|
|
|
|
factory.setDirectBuffers(this.directBuffers);
|
|
|
|
factory.setDirectBuffers(this.directBuffers);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.accesslog.dir != null) {
|
|
|
|
if (this.accesslog.enabled != null) {
|
|
|
|
factory.setAccessLogDirectory(this.accesslog.dir);
|
|
|
|
factory.setAccessLogEnabled(this.accesslog.enabled);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.accesslog.pattern != null) {
|
|
|
|
factory.setAccessLogDirectory(this.accesslog.dir);
|
|
|
|
factory.setAccessLogPattern(this.accesslog.pattern);
|
|
|
|
factory.setAccessLogPattern(this.accesslog.pattern);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.accesslog.prefix != null) {
|
|
|
|
|
|
|
|
factory.setAccessLogPrefix(this.accesslog.prefix);
|
|
|
|
factory.setAccessLogPrefix(this.accesslog.prefix);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.accesslog.suffix != null) {
|
|
|
|
|
|
|
|
factory.setAccessLogSuffix(this.accesslog.suffix);
|
|
|
|
factory.setAccessLogSuffix(this.accesslog.suffix);
|
|
|
|
}
|
|
|
|
factory.setAccessLogRotate(this.accesslog.rotate);
|
|
|
|
if (this.accesslog.enabled != null) {
|
|
|
|
|
|
|
|
factory.setAccessLogEnabled(this.accesslog.enabled);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
factory.setUseForwardHeaders(serverProperties.getOrDeduceUseForwardHeaders());
|
|
|
|
factory.setUseForwardHeaders(serverProperties.getOrDeduceUseForwardHeaders());
|
|
|
|
if (serverProperties.getMaxHttpHeaderSize() > 0) {
|
|
|
|
if (serverProperties.getMaxHttpHeaderSize() > 0) {
|
|
|
|
customizeMaxHttpHeaderSize(factory,
|
|
|
|
customizeMaxHttpHeaderSize(factory,
|
|
|
@ -1406,6 +1400,11 @@ public class ServerProperties
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private File dir = new File("logs");
|
|
|
|
private File dir = new File("logs");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Enable access log rotation.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private boolean rotate = true;
|
|
|
|
|
|
|
|
|
|
|
|
public Boolean getEnabled() {
|
|
|
|
public Boolean getEnabled() {
|
|
|
|
return this.enabled;
|
|
|
|
return this.enabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1446,6 +1445,13 @@ public class ServerProperties
|
|
|
|
this.dir = dir;
|
|
|
|
this.dir = dir;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isRotate() {
|
|
|
|
|
|
|
|
return this.rotate;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setRotate(boolean rotate) {
|
|
|
|
|
|
|
|
this.rotate = rotate;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|