OrleansLoggerExtension.Warn Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Warn(ILogger, ErrorCode, String, Exception) | |
Warn(ILogger, ErrorCode, String, Object[]) | |
Warn(ILogger, Int32, String, Exception) |
Writes a log entry at the Warning level |
Warn(ILogger, Int32, String, Object[]) |
Writes a log entry at the Warning level |
Warn(ILogger, ErrorCode, String, Exception)
- Source:
- ILoggerExtensions.cs
public static void Warn (this Microsoft.Extensions.Logging.ILogger logger, Orleans.ErrorCode logCode, string message, Exception exception = default);
static member Warn : Microsoft.Extensions.Logging.ILogger * Orleans.ErrorCode * string * Exception -> unit
<Extension()>
Public Sub Warn (logger As ILogger, logCode As ErrorCode, message As String, Optional exception As Exception = Nothing)
Parameters
- logger
- ILogger
- logCode
- ErrorCode
- message
- String
- exception
- Exception
Applies to
Warn(ILogger, ErrorCode, String, Object[])
- Source:
- ILoggerExtensions.cs
public static void Warn (this Microsoft.Extensions.Logging.ILogger logger, Orleans.ErrorCode logCode, string format, params object[] args);
static member Warn : Microsoft.Extensions.Logging.ILogger * Orleans.ErrorCode * string * obj[] -> unit
<Extension()>
Public Sub Warn (logger As ILogger, logCode As ErrorCode, format As String, ParamArray args As Object())
Parameters
- logger
- ILogger
- logCode
- ErrorCode
- format
- String
- args
- Object[]
Applies to
Warn(ILogger, Int32, String, Exception)
- Source:
- ILoggerExtensions.cs
Writes a log entry at the Warning level
public static void Warn (this Microsoft.Extensions.Logging.ILogger logger, int logCode, string message, Exception exception = default);
static member Warn : Microsoft.Extensions.Logging.ILogger * int * string * Exception -> unit
<Extension()>
Public Sub Warn (logger As ILogger, logCode As Integer, message As String, Optional exception As Exception = Nothing)
Parameters
- logger
- ILogger
The logger
- logCode
- Int32
The log code associated with this message.
- message
- String
The warning message to log.
- exception
- Exception
An exception related to the warning, if any.
Applies to
Warn(ILogger, Int32, String, Object[])
- Source:
- ILoggerExtensions.cs
Writes a log entry at the Warning level
public static void Warn (this Microsoft.Extensions.Logging.ILogger logger, int logCode, string format, params object[] args);
static member Warn : Microsoft.Extensions.Logging.ILogger * int * string * obj[] -> unit
<Extension()>
Public Sub Warn (logger As ILogger, logCode As Integer, format As String, ParamArray args As Object())
Parameters
- logger
- ILogger
The logger
- logCode
- Int32
The log code associated with this message.
- format
- String
Format string of the log message with named parameters
Not always suitable for String.Format
. See Microsoft.Extensions.Logging MessageTemplate section for more information. Suggest to use their pattern over this extension method
- args
- Object[]
Any arguments to the format string.