SensitiveLogCritical Method
SensitiveLogCritical(ILogger, EventId, Exception, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
public static void SensitiveLogCritical(this ILogger logger, EventId eventId, Exception exception, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The Logger to write to. |
EventId | eventId | The event id associated with the log. |
Exception | exception | The exception to log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(0, exception, "Error while processing request from {Address}", address)
SensitiveLogCritical(ILogger, EventId, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
public static void SensitiveLogCritical(this ILogger logger, EventId eventId, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The Logger to write to. |
EventId | eventId | The event id associated with the log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(0, "Processing request from {Address}", address)
SensitiveLogCritical(ILogger, Exception, string, params object?[])
Formats and writes a critical log message that contain potentially sensitive information.
public static void SensitiveLogCritical(this ILogger logger, Exception exception, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The Logger to write to. |
Exception | exception | The exception to log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(exception, "Error while processing request from {Address}", address)
SensitiveLogCritical(ILogger, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
public static void SensitiveLogCritical(this ILogger logger, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The Logger to write to. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical("Processing request from {Address}", address)
SensitiveLogCritical(Logger, EventId, Exception, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
[Obsolete("Obsolete, use equivalent ILogger method, or view the changelog for further instruction.")]
public static void SensitiveLogCritical(this Logger logger, EventId eventId, Exception exception, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | The Logger to write to. |
EventId | eventId | The event id associated with the log. |
Exception | exception | The exception to log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(0, exception, "Error while processing request from {Address}", address)
SensitiveLogCritical(Logger, EventId, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
[Obsolete("Obsolete, use equivalent ILogger method, or view the changelog for further instruction.")]
public static void SensitiveLogCritical(this Logger logger, EventId eventId, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | The Logger to write to. |
EventId | eventId | The event id associated with the log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(0, "Processing request from {Address}", address)
SensitiveLogCritical(Logger, Exception, string, params object?[])
Formats and writes a critical log message that contain potentially sensitive information.
[Obsolete("Obsolete, use equivalent ILogger method, or view the changelog for further instruction.")]
public static void SensitiveLogCritical(this Logger logger, Exception exception, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | The Logger to write to. |
Exception | exception | The exception to log. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical(exception, "Error while processing request from {Address}", address)
SensitiveLogCritical(Logger, string, params object?[])
Formats and writes a critical log message that contains potentially sensitive information.
[Obsolete("Obsolete, use equivalent ILogger method, or view the changelog for further instruction.")]
public static void SensitiveLogCritical(this Logger logger, string message, params object?[] args)
Parameters
Type | Name | Description |
---|---|---|
Logger | logger | The Logger to write to. |
string | message | Format string of the log message in message template format.
Example: |
object[] | args | An object array that contains zero or more objects to format. |
Examples
logger.LogCritical("Processing request from {Address}", address)