ArcStache.ComLogUtil.ComLogUtil C# (CSharp) Method

ComLogUtil() public method

Initializes a new instance of the ComLogUtil class. Log file will be created in a "Logs" folder located alongside the running DLL.
public ComLogUtil ( ) : System
return System
        public ComLogUtil()
        {
            // Create directory if it doesn't exist
            _directoryPath = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(this.GetType().Assembly.Location), "Logs");
            if (!Directory.Exists(_directoryPath))
            {
                Directory.CreateDirectory(_directoryPath);
            }

            // Create a default filename
            this.FileName = "_log.txt";
        }