This is an update to this Mod: https://mods.factorio.com/mod/combat-log/ for 2.1, plus a couple quality of life improvements, such as being able to add a pin for the combat event and other things. I'll add the original description for it here:
If there are any errors please let me know so I can fix them. The way I play I may not find the errors others do!
combat-log
Keeps a log of combat alerts.
Motivation
Vanilla combat alerts disappear after a few seconds. If you don't stop what you're doing to check where a wall was damaged or destroyed, you may have a difficult time finding it later. This mod is intended to eliminate that frustration, allowing you to continue focusing on more important tasks: you can find your damaged stuff later.
Is it cheating?
This mod makes no gameplay changes, it only stores information (which is already available to you via Alerts) and presents it to you upon request.
How to use
Click the Alert icon in the top-left toolbar to display the Combat Log window.
When an event is detected, left click on the button to zoom to the event, right click to remove the event from the log.
The numbers on the icons represent how many entities were destroyed. 0 represents that damage has occurred, but nothing has been destroyed.
Integration with Space Exploration
If Space Exploration is detected, this mod will attempt to use Space Exploration's Remote View for the zoom function.