Skip to content

Commit

Permalink
Load history on monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
mnellemann committed Oct 15, 2024
1 parent eca2ff0 commit 5eb2dea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/biz/nellemann/syslogd/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
versionProvider = biz.nellemann.syslogd.VersionProvider.class)
public class Main implements Callable<Integer>, LogReceiveListener {

private CircularFifoQueue<SyslogMessage> queue = new CircularFifoQueue<>(500);
private CircularFifoQueue<SyslogMessage> queue = new CircularFifoQueue<>(500);
private final List<LogForwardListener> logForwardListeners = new ArrayList<>();
private SyslogParser syslogParser;
private static boolean keepRunning = true;
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/templates/index.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Log Director - Monitor</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="${publicAt('css/bulma.min.css')}" rel="stylesheet">
Expand All @@ -26,6 +27,8 @@
<table class="table is-fullwidth is-striped" hx-ext="ws" ws-connect="ws/log">
<tbody id="content">
</tbody>
<tbody id="history" hx-get="log" hx-trigger="load">
</tbody>
</table>
</section>

Expand Down

0 comments on commit 5eb2dea

Please sign in to comment.