Files
UVtools/UVtools.WPF/ErrorLog.cs
T
Tiago Conceição 683a6f4fb4 v2.14.2
- **Exposure time finder:**
   - (Add) [ME] Option: 'Use different settings for layers with same Z positioning'
   - (Add) [ME] Option: 'Lift height' for same Z positioned layers
   - (Add) [ME] Option: 'Light-off delay' for same Z positioned layers
   - (Improvement) Auto-detect and optimize the 'multiple exposures' test to decrease the print time, by set a minimal lift to almost none
   - (Improvement) Better information on the thumbnail
   - (Fix) Importing a profile would crash the application
   - (Fix) Error with 'Pattern loaded model' fails when generating more models than build plate can afford (#239)
- **GCode:**
   - (Fix) When the last layer have no lifts and a move to top command is set on end, that value were being set incorrectly as last layer position
   - (Fix) Layer parsing from mm/s to mm/m bad convertion
- (Add) File formats: Setter `SuppressRebuildGCode` to disable or enable the gcode auto rebuild when needed, set this to false to manually write your own gcode
- (Fix) ZCode: Some test files come with layer height of 0mm on a property, in that case lookup layer height on the second property as fallback
2021-07-11 01:09:43 +01:00

32 lines
796 B
C#

using System;
using System.Diagnostics;
using System.IO;
namespace UVtools.WPF
{
public static class ErrorLog
{
private const string Filename = "errors.log";
public static string FullPath = Path.Combine(UserSettings.SettingsFolder, Filename);
public static void AppendLine(string errorType, string text)
{
try
{
File.AppendAllText(FullPath,
$"[v{App.VersionStr}] ({errorType}) @ {DateTime.Now}: {text}{Environment.NewLine}");
}
catch (Exception exception)
{
Debug.WriteLine(exception);
}
}
public static StreamWriter GetStreamWriter()
{
return File.AppendText(FullPath);
}
}
}