Table of Contents

Class MonitoringMessages

Namespace
Arc4u.Diagnostics.Monitoring
Assembly
Arc4u.Diagnostics.dll

Source-generated log messages used by the monitoring components.

public static class MonitoringMessages
Inheritance
MonitoringMessages
Inherited Members

Methods

LogMonitoring(ILogger)

Logs the Cpu & Memory message (event id 9001, Information level) with the properties added to the logger.

[LoggerMessage(EventId = 9001, Level = LogLevel.Information, Message = "Cpu & Memory", SkipEnabledCheck = true)]
[Obsolete("Logging the CPU and memory usage is deprecated and will be removed in a future major version. Collect the .NET runtime and process metrics with OpenTelemetry instead (see https://arc4u-org.github.io/Arc4u/guides/diagnostics/index.html#log-cpu-and-memory-usage).")]
public static void LogMonitoring(this ILogger logger)

Parameters

logger ILogger

The logger.