UnknownLogLevelException Class
HAKOM.Logging.HakomDatabaseLog.Net.Api.Exceptions
Section titled “HAKOM.Logging.HakomDatabaseLog.Net.Api.Exceptions”Thrown when an attempt is made to log using a log level that is unknown.
public sealed class UnknownLogLevelException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 UnknownLogLevelException
Remarks
Section titled “Remarks”When calling Microsoft.Extensions.Logging.ILogger.Log<>.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,<>.Exception,System.Func{<>.Exception,System.String}) or any of the “Log” extension methods in Microsoft.Extensions.Logging.LoggerExtensions while passing a Microsoft.Extensions.Logging.LogLevel that this database logger does not support, this exception is thrown.
Loggers will usually support all defined Microsoft.Extensions.Logging.LogLevels. Make sure the level is defined by calling System.Enum.IsDefined(System.Type,System.Object).
This exception is identified by error code HK05005.
Properties
Section titled “Properties”UnknownLogLevelException.EquivalentHttpStatusCode Property
Section titled “UnknownLogLevelException.EquivalentHttpStatusCode Property”When this exception is thrown inside an HTTP request, the request should return a response with HTTP status code 500 (Internal server error).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }