fix(app-server) emit logs as json-rpc

This commit is contained in:
Dylan Hurd
2026-03-23 23:50:10 -07:00
parent 2227248cd6
commit eb3ae71242
16 changed files with 855 additions and 17 deletions

View File

@@ -5150,6 +5150,73 @@
],
"type": "string"
},
"LogEntryLevel": {
"enum": [
"trace",
"debug",
"info",
"warn",
"error"
],
"type": "string"
},
"LogEntryNotification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"fields": {
"additionalProperties": true,
"type": "object"
},
"level": {
"$ref": "#/definitions/LogEntryLevel"
},
"message": {
"type": "string"
},
"span": {
"anyOf": [
{
"$ref": "#/definitions/LogSpanContext"
},
{
"type": "null"
}
]
},
"target": {
"type": "string"
},
"timestamp": {
"format": "int64",
"type": "integer"
}
},
"required": [
"fields",
"level",
"message",
"target",
"timestamp"
],
"title": "LogEntryNotification",
"type": "object"
},
"LogSpanContext": {
"properties": {
"fields": {
"additionalProperties": true,
"type": "object"
},
"name": {
"type": "string"
}
},
"required": [
"fields",
"name"
],
"type": "object"
},
"LoginAccountParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
@@ -7896,6 +7963,26 @@
"title": "ErrorNotification",
"type": "object"
},
{
"properties": {
"method": {
"enum": [
"log/entry"
],
"title": "Log/entryNotificationMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/LogEntryNotification"
}
},
"required": [
"method",
"params"
],
"title": "Log/entryNotification",
"type": "object"
},
{
"properties": {
"method": {