| | 1 | | using System; |
| | 2 | | using Microsoft.Extensions.Logging; |
| | 3 | |
|
| | 4 | | namespace SharpHoundCommonLib |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// An ILogger interface that does nothing |
| | 8 | | /// </summary> |
| | 9 | | public class NoOpLogger : ILogger |
| | 10 | | { |
| | 11 | | public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, |
| | 12 | | Func<TState, Exception, string> formatter) |
| 208 | 13 | | { |
| 208 | 14 | | } |
| | 15 | |
|
| | 16 | | public bool IsEnabled(LogLevel logLevel) |
| 0 | 17 | | { |
| 0 | 18 | | return false; |
| 0 | 19 | | } |
| | 20 | |
|
| | 21 | | public IDisposable BeginScope<TState>(TState state) |
| 0 | 22 | | { |
| 0 | 23 | | return default; |
| 0 | 24 | | } |
| | 25 | | } |
| | 26 | | } |