LogTools LogException Method NetworkComms.Net Help
Logs the provided exception to a file to assist troubleshooting.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static string LogException(
	Exception ex,
	string fileName,
	string optionalCommentStr = ""
)

Parameters

ex
Type: OnlineSystem Exception
The exception to be logged
fileName
Type: OnlineSystem String
The filename to use. A time stamp and extension .txt will be appended automatically
optionalCommentStr (Optional)
Type: OnlineSystem String
An optional string which will appear at the top of the error file

Return Value

Type: OnlineString
The entire fileName used.
See Also