Click or drag to resize

Log4NetToSerilogConfigurationConvertLog4NetToSerilogLogLevel Method

Converts a log4net Level in its equivalent Serilog Log Event Level

Namespace: LynceeTec.LogTools
Assembly: LynceeTec.LogTools (in LynceeTec.LogTools.dll) Version: 10.2.3317.0 , built 2025-03-17 14:02:54 UTC
Syntax
public static LogEventLevel ConvertLog4NetToSerilogLogLevel(
	Level log4netLogLevel
)

Parameters

log4netLogLevel  Level
The log4net Level to convert. Accepted values are Verbose, Debug, Info, Warn, Error and Fatal. Other levels are not supported

Return Value

LogEventLevel
The equivalent Serilog Log Event Level
Exceptions
ExceptionCondition
InvalidEnumArgumentExceptionThrown when a non accepted arguement is given. Accepted values are Verbose, Debug, Info, Warn, Error and Fatal. Other levels are not supported
See Also