You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,15 @@
3
3
Simple log viewer.
4
4
Works with log that have json on each line.
5
5
Works in both Web (WASM) and on native.
6
+
Defaults are configured for [bunyan formatted logs](https://github.com/trentm/node-bunyan) but these are setup as setting and are able to be changed (UI not implemented to change at present due to no demand).
7
+
For rust programs one can use the crate [tracing_bunyan_formatter](https://docs.rs/tracing-bunyan-formatter/latest/tracing_bunyan_formatter/) to generate logs as done in the book [Zero To Production In Rust](https://www.zero2prod.com/index.html).
6
8
7
9
You can use the deployed version without install at <https://c-git.github.io/log-viewer/>
8
10
9
11
# Description of expected log file format
10
12
11
13
It is expected that the file will contain multiple json objects separated by new lines.
14
+
If a line is not valid json it can be converted into a Log record with the entire line being one json field.
12
15
See [samples](tests/sample_logs/).
13
16
A toy example would be:
14
17
@@ -20,7 +23,8 @@ A toy example would be:
20
23
21
24
# How to run
22
25
23
-
Make sure you are using the latest version of stable rust by running `rustup update`.
26
+
We do not test on older version of rust so it is possible you may get compilation errors if you are not on the latest version of stable rust.
27
+
To get the most recent stable version use `rustup update`.
0 commit comments