private static string GetLogFilePath() { string logFilePath = UserOptionsHelper.GetOption <string>(UserOptionProperties.ExtensionLogFilePath); if (!string.IsNullOrEmpty(logFilePath)) { return(Path.Combine(logFilePath, CreateLogFileName())); } logFilePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); OutputLogger.WriteToOutputWindow(Resource.WarningMessage_MissingExtensionLogPath, MessageType.Warning); return(Path.Combine(logFilePath, CreateLogFileName())); }
public static string GetLogFilePath() { var logFilePath = UserOptionsHelper.GetOption <string>(UserOptionProperties.XrmToolingLogFilePath); if (!string.IsNullOrEmpty(logFilePath)) { return(Path.Combine(logFilePath, "D365DevExXrmToolingLog_" + DateTime.Now.ToString("MMddyyyy") + ".log")); } logFilePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); OutputLogger.WriteToOutputWindow(Resource.WarningMessage_MissingXrmToolingLogPath, MessageType.Warning); return(Path.Combine(logFilePath, "D365DevExXrmToolingLog_" + DateTime.Now.ToString("MMddyyyy") + ".log")); }