tschroedter / idasen-desk

Controlling the Ikea Idasen desk using Windows 10, C# and BluetoothLE
MIT License
29 stars 5 forks source link

Discard old logs #14

Closed OpenByteDev closed 1 year ago

OpenByteDev commented 1 year ago

The program should discard old log information. C:\ProgramData\Idasen.SystemTray.log is 1GB on my machine.

tschroedter commented 1 year ago

I will have a look when I have some time. The logging is based on Serilog and can be configured. I will most likely add support for a configuration file (appsettings.json). The default will restrict the file size and rolling log files with a limit. By default Serilog logs up to 1GB.

tschroedter commented 1 year ago

I've create a new release which will use 5 rolling log files with a max. size of 10 MBytes. Optional you can use your own settings by providing a appsettings.json file in the .exe folder.

Let me know if it works for you.