EventTracingLevel
EventTracingLevel
Section titled “EventTracingLevel”Defines a custom logging level override for a specific event type.
This object can be configured from the WebUI under Settings › Telemetry › Event Levels
Fields
Section titled “Fields”Type:
EventType· read-onlyUnique identifier of the event
Type:
TracingLevelOpt· default:"info"The logging level for this event
JMAP API
Section titled “JMAP API”The EventTracingLevel object is available via the urn:stalwart:jmap capability.
x:EventTracingLevel/get
Section titled “x:EventTracingLevel/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysEventTracingLevelGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:EventTracingLevel/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:EventTracingLevel/set
Section titled “x:EventTracingLevel/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
Supports create, update, and destroy operations in a single call.
Create
Section titled “Create”This operation requires the sysEventTracingLevelCreate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:EventTracingLevel/set", { "create": { "new1": {} } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Update
Section titled “Update”This operation requires the sysEventTracingLevelUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:EventTracingLevel/set", { "update": { "id1": { "level": "info" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Destroy
Section titled “Destroy”This operation requires the sysEventTracingLevelDestroy permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:EventTracingLevel/set", { "destroy": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:EventTracingLevel/query
Section titled “x:EventTracingLevel/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysEventTracingLevelQuery permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:EventTracingLevel/query", { "filter": {} }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get EventTracingLevel id1Create
Section titled “Create”stalwart-cli create EventTracingLevelstalwart-cli query EventTracingLevelUpdate
Section titled “Update”stalwart-cli update EventTracingLevel id1 --field level=infoDelete
Section titled “Delete”stalwart-cli delete EventTracingLevel --ids id1TracingLevelOpt
Section titled “TracingLevelOpt”| Value | Label |
|---|---|
disable | Disabled |
error | Error - Only errors are logged |
warn | Warning - Errors and warnings are logged |
info | Info - Errors, warnings and info are logged |
debug | Debug - Errors, warnings, info and debug are logged |
trace | Trace - Errors, warnings, info, debug and trace are logged |