AspLog.InitializeWithDefaultsSinceNoConfigExists Method
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.
Creates a new FileLogTraceListener and adds it to the Listeners collection.
protected public:
override void InitializeWithDefaultsSinceNoConfigExists();
protected internal override void InitializeWithDefaultsSinceNoConfigExists ();
override this.InitializeWithDefaultsSinceNoConfigExists : unit -> unit
Protected Friend Overrides Sub InitializeWithDefaultsSinceNoConfigExists ()
Remarks
This method creates a new FileLogTraceListener, sets its name to FileLog
, and configures it to log messages with severity level Information and greater. The new FileLogTraceListener object is then added to the Listeners collection.
The Log calls the method if the TraceSource property has not been configured. The trace source can be configured in the application's configuration file.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om