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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기