Skip to content

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

Type: EventType · read-only

Unique identifier of the event

Type: TracingLevelOpt · default: "info"

The logging level for this event

The EventTracingLevel object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysEventTracingLevelGet permission.

Terminal window
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"
]
}'

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.

This operation requires the sysEventTracingLevelCreate permission.

Terminal window
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"
]
}'

This operation requires the sysEventTracingLevelUpdate permission.

Terminal window
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"
]
}'

This operation requires the sysEventTracingLevelDestroy permission.

Terminal window
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"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysEventTracingLevelQuery permission.

Terminal window
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.

Terminal window
stalwart-cli get EventTracingLevel id1
Terminal window
stalwart-cli create EventTracingLevel
Terminal window
stalwart-cli query EventTracingLevel
Terminal window
stalwart-cli update EventTracingLevel id1 --field level=info
Terminal window
stalwart-cli delete EventTracingLevel --ids id1
ValueLabel
disableDisabled
errorError - Only errors are logged
warnWarning - Errors and warnings are logged
infoInfo - Errors, warnings and info are logged
debugDebug - Errors, warnings, info and debug are logged
traceTrace - Errors, warnings, info, debug and trace are logged