The supported trace logging options.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
The TraceOptions enumeration determines what kind of information is written to the logfile specified by the TraceFile property. These options are only meaningful when logging is enabled by setting the Trace property to true.
| Member Name | Description | Value |
|---|---|---|
| Info | All function calls are logged, but without detailed information about the data being transmitted. This is the most basic level of logging and can be useful when debugging call sequences or return values without the additional overhead of logging the data being exchanged between the client and server. | 0 |
| Error | Only those function calls which fail are written to the file. It is important to note that this only relates to errors at the networking level and not errors which can occur at the protocol level, such as an error response from the server because the client sends an invalid request. | 1 |
| Warning | Only those function calls which fail or return values which indicate a warning are written to the file. Warnings consist of error conditions which do not normally constitute a failure at the network level. The most common warning that can occur is a timeout while waiting for a response from the remote host. | 2 |
| HexDump | In addition to logging function calls, this option writes the raw data that is sent and received over the network, shown in both hexadecimal and ASCII formats. This is especially useful for debugging protocol-level issues and verifying payload contents and responses. | 4 |
| Truncate | If the file already exists and is not read-only, the contents will be deleted before logging begins. This option is typically used to begin a new log file each time tracing is enabled, rather than appending to an existing file. This option requires the process to have permission to read, write and delete the file in the specified folder. | 8 |
| Process | All network function calls made by the current process are logged, rather than only those functions in the current thread. This option is useful for multithreaded applications that are using worker threads. | 4096 |
| Default | The same as specifying the HexDump option. | 4 |
Namespace: SocketTools
Assembly: SocketTools.PopClient (in SocketTools.PopClient.dll)
Version: 12.0.3041.1380