Replaces inline logging with source-generated LoggerMessage by Meir017 · Pull Request #2903 · StackExchange/StackExchange.Redis

@Meir017

Adopts source-generated LoggerMessage for all logging calls, replacing direct string interpolation and formatting in log messages. Introduces strongly-typed helper structs for efficient log value formatting and factors out complex ToString() calls.

Improves logging performance, ensures consistency across log entries, and reduces unnecessary allocations by deferring message formatting until required. Lays groundwork for easier log message maintenance and better structured logging.

@Meir017 Meir017 deleted the feature/logger-message-attribute branch

July 21, 2025 09:15