mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-15 10:47:06 +02:00
26 lines
975 B
Plaintext
26 lines
975 B
Plaintext
<%- add_javascript_pack_tag("fluent_log") %>
|
|
<!-- vue.js -->
|
|
<% auto_reload ||= true %>
|
|
<div id="fluent-log" logUrl="<%= log_tail_daemon_agent_path(fluentd) %>" initialAutoReload="<%= auto_reload ? "true" : "" %>">
|
|
<div class="bottom-margin form-inline">
|
|
<button class="btn btn-primary mr-3" v-on:click="fetchLogs">
|
|
<%= t "terms.reload_log" %>
|
|
</button>
|
|
<input type="text" v-model="limit" size="4" v-on:keyup.enter="fetchLogs" class="form-control"/>
|
|
<%= t('terms.lines') %>
|
|
<label class="ml-3">
|
|
<input type="checkbox" v-model="autoFetch" /> <%= t "terms.auto_reload", seconds: 1 %>
|
|
</label>
|
|
<span v-if="processing"><%= icon('fa-spin fa-refresh') %></span>
|
|
</div>
|
|
|
|
<pre v-if="isPresentedLogs" class="card bg-light"><!-- be careful indent -->
|
|
<div class="log card-body"><span v-for="log in logs">{{ log }}
|
|
</span></div></pre>
|
|
|
|
<div v-if="!isPresentedLogs && !processing">
|
|
<p>[log is empty]</p>
|
|
</div>
|
|
</div>
|
|
<!-- /vue.js -->
|