A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://nlog-project.org/documentation/v4.7.0/html/M_NLog_LogEventInfo_Create_5.htm below:

LogEventInfoCreate Method (LogLevel, String, String, Exception)

LogEventInfoCreate Method (LogLevel, String, String, Exception)

Note: This API is now obsolete.

Creates the log event.

Namespace:  NLog
Assembly:

NLog (in NLog.dll) Version: 4.7.0+4d138800820311d0b60b6437f1dd2ed1d571d47d

Syntax
[ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message) instead. Marked obsolete before v4.3.11")]
public static LogEventInfo Create(
	LogLevel logLevel,
	string loggerName,
	string message,
	Exception exception
)
<ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message) instead. Marked obsolete before v4.3.11")>
Public Shared Function Create ( 
	logLevel As LogLevel,
	loggerName As String,
	message As String,
	exception As Exception
) As LogEventInfo

Dim logLevel As LogLevel
Dim loggerName As String
Dim message As String
Dim exception As Exception
Dim returnValue As LogEventInfo

returnValue = LogEventInfo.Create(logLevel, 
	loggerName, message, exception)
[<ObsoleteAttribute("use Create(LogLevel logLevel, string loggerName, Exception exception, IFormatProvider formatProvider, string message) instead. Marked obsolete before v4.3.11")>]
static member Create : 
        logLevel : LogLevel * 
        loggerName : string * 
        message : string * 
        exception : Exception -> LogEventInfo 
Parameters
logLevel
Type: NLogLogLevel
The log level.
loggerName
Type: SystemString
Name of the logger.
message
Type: SystemString
The message.
exception
Type: SystemException
The exception.
Return Value

Type:

LogEventInfo

Instance of

LogEventInfo

.

Remarks

This method was marked as obsolete before NLog 4.3.11 and it may be removed in a future release.

See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4