实现请求日志写入

This commit is contained in:
GoEdgeLab
2020-10-10 11:48:07 +08:00
parent c1a4083a87
commit aa56d4e67b
5 changed files with 14 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ func (this *LogsAction) RunGet(params struct {
return
}
count := countResp.Count
page := this.NewPage(count)
page := this.NewPage(count, 20)
logsResp, err := this.RPC().NodeLogRPC().ListNodeLogs(this.AdminContext(), &pb.ListNodeLogsRequest{
NodeId: params.NodeId,

View File

@@ -108,7 +108,7 @@ Vue.component("http-access-log-config-box", {
</div>
</td>
</tr>
<tr>
<tr v-show="vAccessLogPolicies.length > 0">
<td>选择输出的日志策略</td>
<td>
<span class="disabled" v-if="vAccessLogPolicies.length == 0">暂时还没有缓存策略。</span>
@@ -120,7 +120,7 @@ Vue.component("http-access-log-config-box", {
</div>
</td>
</tr>
<tr>
<tr v-show="vAccessLogPolicies.length > 0">
<td>是否只输出到日志策略</td>
<td>
<div class="ui checkbox">

View File

@@ -29,7 +29,7 @@
<td>数据库名称<em>Database</em> *</td>
<td>
<input type="text" name="database" value="" maxlength="100" placeholder="比如 edge_logs"/>
<p class="comment">要写入日志的数据库名称,需要有创建新表和读写数据的权限。</p>
<p class="comment">要写入日志的数据库名称,需要事先创建好,而且需要有创建新表和读写数据的权限。建议命名为edge_logs。</p>
</td>
</tr>
<tr>

View File

@@ -30,7 +30,7 @@
<td>数据库名称<em>Database</em> *</td>
<td>
<input type="text" name="database" value="" maxlength="100" placeholder="比如 edge_logs" v-model="node.database"/>
<p class="comment">要写入日志的数据库名称,需要有创建新表和读写数据的权限。</p>
<p class="comment">要写入日志的数据库名称,需要事先创建好,而且需要有创建新表和读写数据的权限。建议命名为edge_logs。</p>
</td>
</tr>
<tr>

View File

@@ -42,15 +42,6 @@
<p class="comment">可以用来说明此规则用途。。</p>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="isOn" v-model="locationConfig.isOn"/>
<label></label>
</div>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>
@@ -81,6 +72,15 @@
<textarea rows="3" name="description" maxlength="200" v-model="locationConfig.description"></textarea>
</td>
</tr>
<tr>
<td>是否启用</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="isOn" v-model="locationConfig.isOn"/>
<label></label>
</div>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>