mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	实现请求日志写入
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user