public sealed record PortalDiagnostic : IEquatable<PortalDiagnostic> A setup message from the portal services: a problem the desktop reported, or what a service did.
Parameters
CodeA kebab-case identifier of the situation, such as
status-icon-no-watcher.MessageWhat happened; it can be a D-Bus error name.
RemediationWhat to change, or what the service does next, when there is something to say.
Remarks
For logs only. The PortalDiagnostic.Code values are listed in the package README; they and the text may change in any release, so do not branch on them. Operation outcomes are the services' results.
A sink also receives informational entries, such as portal-identity-registered.
Constructors
PortalDiagnostic
public PortalDiagnostic(string Code, string Message, string? Remediation = null) A setup message from the portal services: a problem the desktop reported, or what a service did.
Parameters
CodeA kebab-case identifier of the situation, such as
status-icon-no-watcher.MessageWhat happened; it can be a D-Bus error name.
RemediationWhat to change, or what the service does next, when there is something to say.
Remarks
For logs only. The PortalDiagnostic.Code values are listed in the package README; they and the text may change in any release, so do not branch on them. Operation outcomes are the services' results.
A sink also receives informational entries, such as portal-identity-registered.
Properties
Code
public string Code { get; init; } A kebab-case identifier of the situation, such as status-icon-no-watcher.
Message
public string Message { get; init; } What happened; it can be a D-Bus error name.
Remediation
public string? Remediation { get; init; } What to change, or what the service does next, when there is something to say.
Severity
public PortalDiagnosticSeverity Severity { get; init; } Whether the entry reports a problem (PortalDiagnosticSeverity.Warning) or what a service did (PortalDiagnosticSeverity.Information), for choosing a log level. The README lists each code's severity.
Exceptions
ArgumentOutOfRangeExceptionThe value is not defined.