Class StructuredLogger
- Namespace
- DotCompute.Abstractions.Telemetry.Providers
- Assembly
- DotCompute.Abstractions.dll
Abstract base class for structured loggers.
public abstract class StructuredLogger : IDisposable
- Inheritance
-
StructuredLogger
- Implements
- Inherited Members
- Extension Methods
Methods
Dispose()
Disposes the structured logger.
public void Dispose()
Dispose(bool)
Releases resources used by the structured logger.
protected virtual void Dispose(bool disposing)
Parameters
disposingboolTrue if called from Dispose(), false if called from finalizer.
LogKernelExecution(string, string, TimeSpan, KernelPerformanceMetrics, string?, Exception?)
Logs a kernel execution event.
public abstract void LogKernelExecution(string kernelName, string deviceId, TimeSpan executionTime, KernelPerformanceMetrics metrics, string? correlationId, Exception? exception)
Parameters
kernelNamestringThe kernel name.
deviceIdstringThe device ID.
executionTimeTimeSpanThe execution time.
metricsKernelPerformanceMetricsThe performance metrics.
correlationIdstringThe correlation ID.
exceptionExceptionThe exception, if any.
LogMemoryOperation(string, string, long, TimeSpan, MemoryAccessMetrics, string?, Exception?)
Logs a memory operation event.
public abstract void LogMemoryOperation(string operationType, string deviceId, long bytes, TimeSpan duration, MemoryAccessMetrics metrics, string? correlationId, Exception? exception)