logging

get all logs

GET http://localhost:5000/logging

Query Parameters

Name
Type
Description

binds

string

seperate with , if you have multi bind keys

{
    "content": [
        {
            "_id": {
                "$oid": "6093a452fe1bf7c011505484"
            },
            "number": 3,
            "cluster_id": "custom-id",
            "binds": [
                "a",
                "b",
                "c"
            ],
            "data": {
                "summary": "test",
                "description": "demo",
                "created_at": {
                    "$date": 1530260127000
                }
            },
            "lavel": "info",
            "created_at": {
                "$date": 1620288593015
            }
        }
    ]
}

insert log

POST http://localhost:5000/logging

Request Body

Name
Type
Description

created_at_format

string

defualt = %Y-%m-%d %H:%M:%S.%f

binds

array

bind keys to find the log msg with filter

level

string

debug, info, warn, error

created_at

string

description

string

summary

string

Last updated

Was this helpful?