ExLibrisGroup / alma-print-daemon

Application which listens for and prints letters from the Ex Libris Alma print queues.
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Log files location and naming #76

Closed dregad closed 1 year ago

dregad commented 1 year ago

Currently (2.0.0-beta-02) , the program stores its logs in %APPDATA% (C:\Users\xxx\AppData\Roaming\alma-print-daemon)

Considering that there is an existing logs directory there, IMO it would make sense to store the daily log files there as well.

I would also suggest to rename the log files. Currently they are named like log.alma-print-daemon.YYYY-M-D. It would make more sense if they were named like alma-print-daemon.YYYY-MM-DD.log, for the following benefits:

mgobat commented 1 year ago

The first beta version with this feature is available now at https://github.com/ExLibrisGroup/alma-print-daemon/releases/tag/v2.2.0-beta-03.

Note that only the log file names have changed as suggested. The location of the log files remains the same, except in a single configuration file installation.

dregad commented 1 year ago

I have tested today, and confirm that the new naming is effective, and the log files are saved in the expected location (local user's profile, or global config directory).

Thank you !