FakeLogger
FakeLogger(FakeLogCollector, String)
FakeLogger(Action<String>, String)
Category
Collector
LatestRecord
BeginScope<TState>(TState)
ControlLevel(LogLevel, Boolean)
IsEnabled(LogLevel)
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
net10.0-windows7.0
namespace Microsoft.Extensions.Logging.Testing
{
public class FakeLogger : ILogger
{
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string!>! formatter);
}
}
| .NET | 6.07.08.09.010.0 |
|---|---|
| .NET Framework | 4.6.24.74.7.14.7.24.84.8.1 |
Information specific to net10.0 | |
| Platforms | This API is only available when you target a specific platform: |
| Windows | 7.0 |
Information specific to net10.0-windows7.0 | |
| Assemblies | Microsoft.Extensions.Telemetry.Testing , Version=9.0.0.0, PublicKeyToken=31bf3856ad364e35 Microsoft.Extensions.Diagnostics.Testing , Version=9.4.0.0, PublicKeyToken=31bf3856ad364e35 Microsoft.Extensions.Diagnostics.Testing , Version=9.3.0.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Requires any:
|
| Package | Microsoft.Extensions.Telemetry.Testing (9.0.0-alpha.1.23470.2) net8.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API