Export (0) Print
Expand All

FileLogTraceListener Members

Provides a simple listener that directs logging output to file.

The following tables list the members exposed by the FileLogTraceListener type.

  Name Description
Public method FileLogTraceListener Overloaded. Initializes a new instance of the FileLogTraceListener class and sets the name.
Top

(see also Protected Properties )
  Name Description
Public property Append Determines whether to append the output to the current file or write it to a new file.
Public property Attributes  Gets the custom trace listener attributes defined in the application configuration file.(inherited from TraceListener)
Public property AutoFlush Indicates whether or not the writing to the log file stream flushes the buffer.
Public property BaseFileName Gets or sets the base name for the log files, which is used to create the full log-file name.
Public property CustomLocation Gets or sets the log file directory when the Location property is set to Custom.
Public property Delimiter Gets or sets the delimiter used to delimit fields within a log message.
Public property DiskSpaceExhaustedBehavior Determines what to do when writing to the log file and there is less free disk space available than specified by the ReserveDiskSpace property.
Public property Encoding Gets or sets the encoding to use when creating a new log file.
Public property Filter  Gets and sets the trace filter for the trace listener.(inherited from TraceListener)
Public property FullLogFileName Gets the current full log-file name.
Public property IncludeHostName Indicates whether or not the host name of the logging machine should be included in the output.
Public property IndentLevel  Gets or sets the indent level.(inherited from TraceListener)
Public property IndentSize  Gets or sets the number of spaces in an indent.(inherited from TraceListener)
Public property IsThreadSafe  Gets a value indicating whether the trace listener is thread safe. (inherited from TraceListener)
Public property Location Gets or sets location for the log files.
Public property LogFileCreationSchedule Determines which date to include in the names of the log files.
Public property MaxFileSize Gets or sets the maximum allowed size of the log file, in bytes.
Public property Name  Gets or sets a name for this TraceListener.(inherited from TraceListener)
Public property ReserveDiskSpace Gets or sets the amount of free disk space, in bytes, necessary before messages can be written to the log file.
Public property TraceOutputOptions  Gets or sets the trace output options.(inherited from TraceListener)
Top

  Name Description
Protected property NeedIndent  Gets or sets a value indicating whether to indent the output.(inherited from TraceListener)
Top

(see also Protected Methods )
  Name Description
Public method Close Overridden. Closes the underlying stream for the current log file and releases any resources associated with the current stream.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Dispose Overloaded. Closes the underlying stream and optionally releases the managed resources.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Fail  Overloaded. Emits error messages to the listener you create when you implement the TraceListener class. (inherited from TraceListener)
Public method Flush Overridden. Flushes the underlying stream that writes to the current log file.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method TraceData Overloaded. Overridden. Writes trace data to the output file.
Public method TraceEvent Overloaded. Writes trace and event information to the output file or stream.
Public method TraceTransfer  Writes trace information, a message, a related activity identity and event information to the listener specific output. (inherited from TraceListener)
Public method Write Overloaded. Writes a message to disk verbatim, without any additional context information.
Public method WriteLine Overloaded. Writes a verbatim message to disk, followed by the current line terminator, without any additional context information.
Top

  Name Description
Protected method Dispose Overloaded. Overridden. Closes the underlying stream and optionally releases the managed resources.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method GetSupportedAttributes Overridden. Gets the custom XML configuration attributes supported by the trace listener.
Protected method MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Protected method WriteIndent  Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false. (inherited from TraceListener)
Top

Community Additions

ADD
Show:
© 2015 Microsoft