console: disable changing log path

This commit is contained in:
zzz
2015-01-31 15:10:45 +00:00
parent 09c3737a94
commit 711f8dedd9
2 changed files with 3 additions and 1 deletions

View File

@@ -126,6 +126,7 @@ public class ConfigLoggingHandler extends FormHandler {
}
}
/*** disable
if ( (_filename != null) && (_filename.trim().length() > 0) ) {
_filename = _filename.trim();
String old = _context.logManager().getBaseLogfilename();
@@ -138,6 +139,7 @@ public class ConfigLoggingHandler extends FormHandler {
+ " (note: will not take effect until next rotation)");
}
}
***/
if ( (_recordFormat != null) && (_recordFormat.trim().length() > 0) ) {
_recordFormat = _recordFormat.trim();

View File

@@ -27,7 +27,7 @@
<div class="wideload">
<table border="0" cellspacing="5">
<tr><td class="mediumtags" align="right"><b><%=intl._("Log file")%>:</b></td>
<td><input type="text" name="logfilename" size="40" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" >
<td><input type="text" name="logfilename" size="40" disabled="disabled" title="<%=intl._("Edit {0} to change", "logger.config")%>" value="<jsp:getProperty name="logginghelper" property="logFilePattern" />" >
<br> <i><%=intl._("(the symbol '@' will be replaced during log rotation)")%></i></td>
</tr><tr><td class="mediumtags" align="right"><b><%=intl._("Log record format")%>:</b></td>
<td><input type="text" name="logformat" size="20" value="<jsp:getProperty name="logginghelper" property="recordPattern" />" >