Export (0) Print
Expand All

FileLogTraceListener Members

Provides a simple listener that directs logging output to file.

The FileLogTraceListener type exposes the following members.

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

  NameDescription
Public method Close Closes the underlying stream for the current log file and releases any resources associated with the current stream. (Overrides TraceListener.Close().)
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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Fail Overloaded. Emits error messages to the listener you create when you implement the TraceListener class.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Flushes the underlying stream that writes to the current log file. (Overrides TraceListener.Flush().)
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.)
Protected method GetSupportedAttributes Gets the custom XML configuration attributes supported by the trace listener. (Overrides TraceListener.GetSupportedAttributes().)
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.)
Protected method MemberwiseClone Overloaded.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TraceData Overloaded. 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.
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.)
Public method WriteLine Overloaded. Writes a verbatim message to disk, followed by the current line terminator, without any additional context information.
Top

  NameDescription
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.)
Protected property NeedIndent Gets or sets a value indicating whether to indent the output. (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

Community Additions

ADD
Show:
© 2014 Microsoft