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.0.26418.0 , built 2021-10-22 08:43:38 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