PortalDiagnostic record

Namespace Runic.Platform.Linux.Portal in Runic.Platform.Linux.Portal 0.23.0

public sealed record PortalDiagnostic : IEquatable<PortalDiagnostic>

Inherits or implements IEquatable.

A setup message from the portal services: a problem the desktop reported, or what a service did.

Parameters

Code

A kebab-case identifier of the situation, such as status-icon-no-watcher.

Message

What happened; it can be a D-Bus error name.

Remediation

What 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

Code

A kebab-case identifier of the situation, such as status-icon-no-watcher.

Message

What happened; it can be a D-Bus error name.

Remediation

What 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

ArgumentOutOfRangeException

The value is not defined.