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: 9.2.6612.0 , built 2022-07-14 10:49:53 UTC
Syntax
public static LogEventLevel ConvertLog4NetToSerilogLogLevel(
	Level log4netLogLevel
)

Parameters

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

Return Value

Type: 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