This mod adds chat logging and many more features that aren't available in standard minecraft.
In-game chat showing timestamps and duplicate message collapsing
The in-game chat search screen
Chat Optimizer button added to the vanilla Chat Settings screen
General tab — timestamps, duplicate collapsing, history trimming
Appearance tab — timestamp format, bracket style, color
Filters tab — block messages from specific players or keywords