Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

DefaultFileLogWriter Property

Location

My.Application.Log.DefaultFileLogWriter

My.Log.DefaultFileLogWriter

Syntax

For client applications:

Dim result As Microsoft.VisualBasic.Logging. _ FileLogTraceListener = _ My.Application.Log.DefaultFileLogWriter

For ASP.NET applications:

Dim result As Microsoft.VisualBasic.Logging. _ FileLogTraceListener = My.Log.DefaultFileLogWriter

Description

The DefaultFileLogWriter property returns an object of type Microsoft.VisualBasic.Logging.FileLogTraceListener that identifies the current trace listener used by the logging system.

Usage at a Glance

  • This property is read-only.

  • Diagnostic content written using the various Debug.Write methods is not sent to the trace listeners.

  • This property is only valid in client and ASP.NET applications. For client applications, use My.Application.Log.DefaultFileLogWriter. For ASP.NET applications, use My.Log.DefaultFileLogWriter.

Related Framework Entries

  • Microsoft.VisualBasic.Logging.FileLogTraceListener Class

  • Microsoft.VisualBasic.Logging.Log.DefaultFileLogWriter Property

See Also

Log Object (My), Log Object (My.Application), TraceSource Property, WriteEntry Method, WriteException Method

Категории