Click or drag to resize

Logger Constructor

Gets the log folder path and creates it if does not exist. Does not catch UnauthorizedAccessExceptions.

Namespace:  CADSharpTools.Diagnostics
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public Logger(
	DirectoryInfo logsFolder,
	string logFileName,
	bool addTimeStamps = false
)

Parameters

logsFolder
Type: System.IODirectoryInfo
Logs folder
logFileName
Type: SystemString
Filename of the log file with extension
addTimeStamps (Optional)
Type: SystemBoolean
True to add a time stamp
See Also