Skip to content

Commit 8bee6fc

Browse files
committed
readme
1 parent dd6c62d commit 8bee6fc

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# log-sender
22

3-
## quick start
3+
This application collects logs written as json object lines to `*.jsonl` files.
4+
5+
The json must be stringified and written on a single line.
6+
It must have 2 properties: "k" and "t".
7+
8+
- `k` - is the log "kind". Holochain uses "start" and "fetchedOps".
9+
- `t` - is the microsecond (!!`Date.now() * 1000`!!) timestamp as a string type.
10+
11+
Example: `{"k":"start","t":"1758571617392359"}`.
12+
13+
The line can contain any additional properties as desired.
14+
15+
It is expected that whatever process is writing the logs will also rotate them.
16+
The log-sender will never delete any log files.
17+
18+
## running a local log-collector to aid in developing log-sender
419

520
```
621
# check out log-collector

0 commit comments

Comments
 (0)