Export (0) Print
Expand All

Log.InitializeWithDefaultsSinceNoConfigExists Method

Creates a new FileLogTraceListener object and adds it to the Listeners collection.

Namespace:  Microsoft.VisualBasic.Logging
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

protected internal virtual void InitializeWithDefaultsSinceNoConfigExists()

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft