-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace Microsoft.Extensions.Logging | ||
{ | ||
/// <summary> | ||
/// Holds metadata for a buffered log record. | ||
/// </summary> | ||
/// <remarks> | ||
/// If the logging infrastructure decides to buffer log records in memory, it will ensure that the | ||
/// <c>TState</c> value delivered to logging providers implements this interface. The logging providers | ||
/// can then use the metadata to augment the log records they emit. | ||
/// </remarks> | ||
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono_LLVMJIT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_LLVMJIT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke_AOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-riscv64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_Smoke_AOT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_Threading)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-arm64 Debug AllSubsets_CoreCLR)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-tests (Build browser-wasm linux release Runtime_Release)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-testssrc/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-testssrc/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / dotnet-linker-testssrc/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtimesrc/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
Check failure on line 16 in src/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs Azure Pipelines / runtime-dev-innerloopsrc/libraries/Microsoft.Extensions.Logging.Abstractions/src/IBufferedLogRecordMetadata.cs#L16
|
||
public interface IBufferedLogRecordMetadata | ||
{ | ||
/// <summary> | ||
/// Gets the time when the log record was recorded. | ||
/// </summary> | ||
public DateTimeOffset CreationTime { get; } | ||
|
||
/// <summary> | ||
/// Gets the ID of the thread that created the log record. | ||
/// </summary> | ||
public int? ManagedThreadId { get; } | ||
|
||
/// <summary> | ||
/// Gets the ID of the span in effect when the log record was created. | ||
/// </summary> | ||
public ActivitySpanId? SpanId { get; } | ||
|
||
/// <summary> | ||
/// Gets the ID of the trace in effect when the log record was created. | ||
/// </summary> | ||
public ActivityTraceId? TraceId { get; } | ||
} | ||
} |