Skip to content

Files

grid-logger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 29, 2023
Sep 27, 2023
Sep 27, 2023
Feb 22, 2024
Sep 27, 2023
Sep 27, 2023
Dec 4, 2022
Dec 3, 2022
Dec 9, 2022
Dec 7, 2022
Feb 22, 2024
Mar 10, 2024
Sep 27, 2023
Feb 22, 2024
Dec 7, 2022
May 13, 2024
Dec 4, 2022
May 7, 2024
May 7, 2024
Dec 7, 2022
Feb 22, 2024
Sep 27, 2023
Feb 22, 2024

grid-logger

POC of a logger with Web3 authentication.

Logic

Loading
sequenceDiagram
    participant client
    participant server
    participant logger
    participant app
    Note over client,app: Authentication logic
    client->>client: sig = sign data
    client->>+server: rpc auth_rpc(addr,data,sig)
    server->>-client: resp

    Note over client,app: Logging logic
    app->>logger: pipe fifo
    logger->>server: stream rpc write(logname,user,data)
    opt if client logged
        client->>server: auth_rpc readAndWatch(logname)
        server->>server: tail and follow logs
        server->>client: stream logs
    end