LogHelper Class
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.
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) |
Logs an argument exception using the event source logger and returns new typed exception. |
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, 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>(String, Exception, 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, 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. |
LogArgumentNullException(String) |
Logs an exception using the event source logger and returns new ArgumentNullException exception. |
LogException<T>(EventLevel, Exception, String) |
Logs an exception using the event source logger and returns new typed exception. |
LogException<T>(EventLevel, Exception, 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>(EventLevel, 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>(Exception, 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. |
LogException<T>(String, Object[]) |
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 ( |
MarkAsSecurityArtifact(Object, Func<Object,String>) |
Marks a log message argument ( |
MarkAsSecurityArtifact(Object, Func<Object,String>, Func<Object,String>) |
Marks a log message argument ( |
MarkAsUnsafeSecurityArtifact(Object, Func<Object,String>) |
Marks a log message argument ( |
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin