mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-17 21:15:12 +02:00
logger.hpp pulled in <sys/time.h> and used gettimeofday and localtime_r, which do not exist on MSVC. Build the timestamp from std::chrono instead and use localtime_s on MSVC. The output format is unchanged: <colour>- HH:MM:SS.mmm LEVEL: message<reset>. The unused __SHORT_FORM_OF_FILE__ helper now also strips backslash separators. Add logger tests that pin the timestamp and line format. closes #394 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>