Log
Get the last log lines of the Core application.
Read
curl http://127.0.0.1:8080/api/v3/log \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-X GETfrom core_client import Client
client = Client(base_url="http://127.0.0.1:8080")
client.login()
core_log = client.v3_log_get(
format="console"
)
print(core_log)import (
"fmt"
"github.com/datarhei/core-client-go/v16"
)
client, _ := coreclient.New(coreclient.Config{
Address: "https://127.0.0.1:8080",
})
events, err := client.Log()
for _, e := range events {
fmt.Printf("%+v\n", e)
}Last updated
Was this helpful?
