Skip to content

Commit 48d1495

Browse files
authored
Cleanup (#9)
* remove Bun worker * replace command classes with module
1 parent 8fe3436 commit 48d1495

File tree

16 files changed

+529
-589
lines changed

16 files changed

+529
-589
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ For details, refer to its [README.md](https://github.com/vish9812/analog/blob/ma
3939

4040
## Prerequisite:
4141

42-
Install [Bun](https://bun.sh/docs/installation) to run as CLI.
42+
- [Bun](https://bun.sh/docs/installation) is needed to run the CLI.
43+
- [Python 3](https://www.python.org/downloads/) is needed to run the UI.
44+
- Python will be automatically installed if you run the Analog UI app with the `analog` script.
4345

4446
## Getting Started
4547

@@ -73,13 +75,13 @@ Following are the 3 must have keys in the logs:
7375
- timestamp
7476
- msg
7577

76-
Example Format for JSON logs:
78+
Expected Format for JSON logs:
7779

7880
```
7981
{"timestamp":"2023-10-16 10:13:16.710 +11:00","level":"debug","msg":"Received HTTP request","dynamicKey1":"value 1","dynamicKey2":"value 2"}
8082
```
8183

82-
Example Format for plain-text logs:
84+
Expected Format for plain-text logs:
8385

8486
```
8587
debug [2023-10-16 10:13:16.710 +11:00] Received HTTP request dynamicKey1="value 1" dynamicKey2=value 2

cmd/Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ tasks:
1111
cmds:
1212
- >
1313
bun build
14-
./main.ts
15-
./summary/worker.ts
16-
./filterer/reader.worker.ts
14+
./src/main.ts
15+
./src/commands/summary/worker.ts
16+
./src/commands/filterer/worker.ts
1717
--outdir ./cli
1818
--target bun

cmd/filterer/index.ts

Lines changed: 0 additions & 231 deletions
This file was deleted.

cmd/filterer/reader.worker.ts

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)