Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Log.Logging Class

This static class implements all YetaWF logging.

Namespace: YetaWF.Core.Log
Assembly: YetaWF.Core

Inheritance

Syntax

public static class Logging;

Constructors

This class cannot be instantiated.

Properties

PublicStaticDefaultLoggerTypeThe type of the default logging data provider.
PublicStaticDefinedLoggerTypeThe type of the defined logging data provider.
PublicStaticMinLevelDefines the minimum severity level that is logged by any of the installed logging data providers.

Fields

PublicStaticYetaWFEventThe name of an event logged by YetaWF. All events logged by YetaWF have this name. Applications can use their own event names.

Methods

PublicStaticAddAlwaysLogRecords an error message to the YetaWF log.
PublicStaticAddErrorLogRecords an error message to the YetaWF log.
PublicStaticAddLogRecords a message to the YetaWF log.
PublicStaticAddTraceLogRecords an trace message to the YetaWF log.
PublicStaticAddWarningLogRecords an warning message to the YetaWF log.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicStaticForceFlushFlushes all pending log records to permanent storage by calling all logging data providers.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicStaticRegisterLoggingAsyncRegisters a new logging data provider.
PublicStaticSetupLoggingAsyncDefines a default logging data provider based on appsettings.json settings. This is called during site startup.
PublicStaticTerminateLoggingTerminates the default logging data provider.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicStaticUnregisterLoggingUnregisters an existing logging data provider.
PublicStaticWriteToAllLogFilesWrites a message to all logging data providers.

Enums

ProtectedLevelEnumDefines the logging event severity level.

See Also YetaWF.Core Overview