次の方法で共有


LogHelper Class

Definition

Helper class for logging.

public class LogHelper
type LogHelper = class
Public Class LogHelper
Inheritance
LogHelper

Constructors

LogHelper()

Properties

Logger

Gets or sets a logger to which logs will be written to.

Methods

FormatInvariant(String, Object[])

Formats the string using InvariantCulture

IsEnabled(EventLogLevel)

Gets whether logging is enabled at the specified EventLogLevel."/>

LogArgumentException<T>(EventLevel, String, Exception, String, Object[])

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(EventLevel, String, Exception, String)

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(EventLevel, String, String, Object[])

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(EventLevel, String, String)

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(String, Exception, String, Object[])

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(String, Exception, String)

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(String, String, Object[])

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentException<T>(String, String)

Logs an argument exception using the event source logger and returns new typed exception.

LogArgumentNullException(String)

Logs an exception using the event source logger and returns new ArgumentNullException exception.

LogException<T>(EventLevel, Exception, String, Object[])

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(EventLevel, Exception, String)

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(EventLevel, String, Object[])

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(EventLevel, String)

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(Exception, String, Object[])

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(Exception, String)

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(String, Object[])

Logs an exception using the event source logger and returns new typed exception.

LogException<T>(String)

Logs an exception using the event source logger and returns new typed exception.

LogExceptionMessage(EventLevel, Exception)

Logs an exception using the event source logger.

LogExceptionMessage(Exception)

Logs an exception using the event source logger.

LogInformation(String, Object[])

Logs an information event.

LogVerbose(String, Object[])

Logs a verbose event.

LogWarning(String, Object[])

Logs a warning event.

MarkAsNonPII(Object)

Marks a log message argument (arg) as NonPII.

MarkAsSecurityArtifact(Object, Func<Object,String>, Func<Object,String>)

Marks a log message argument (arg) as SecurityArtifact.

MarkAsSecurityArtifact(Object, Func<Object,String>)

Marks a log message argument (arg) as SecurityArtifact.

MarkAsUnsafeSecurityArtifact(Object, Func<Object,String>)

Marks a log message argument (arg) as SecurityArtifact.

Applies to