The problem/use-case that the feature addresses
I got a env running redis for 3-4 years long, eventually found there is no "year info" in redis logs like below: +++ 2288:S 09 Oct 18:51:58.301 * Full resync from master: a21c4ac83bd6ea1d609a6c18d9bf73d5c95d3395:1 324 2288:S 09 Oct 18:51:58.336 * MASTER <-> SLAVE sync: receiving 3149 bytes from master 325 2288:S 09 Oct 18:51:58.336 * MASTER <-> SLAVE sync: Flushing old data +++ I just can't figure out in which year it happened (not this year apparently), since today is 05-Oct.
Description of the feature
As easy as possible, just please print "year info" when printing timestamps in logs. Such as: +++ 324 2288:S 2022 09 Oct 18:51:58.336 * MASTER <-> SLAVE sync: receiving 3149 bytes from master +++
Alternatives you've considered
Meaningful especially to some envs running for many years, and never clear history logs. Currently I can't tell when a historical message happened in which year. I can only guess, maybe infer when looking as enough logs as possible.
Additional information
None.
Comment From: itamarhaber
Hello @shooter556
This is a valid request IMO, and there are already #2554 and #2827. However, this is a breaking change so we need to be careful with how it is introduced.
Comment From: madolson
We could add a "log print format" that defaults to the current behavior, but allows modification.