Just came here to say you could always look for alternative projects that have this built in as well. I’m not sure what logs you as looking at, but it might be best to contribute or request this feature directly for the software.
For example I use crowdsec and they have a button on the logs pages that will anonymize the entire page and is great for taking screenshots.
I agree with another poster that getting something to work with a number of different logs would be a huge undertaking and unrealistic for most solo devs. I do think asking whatever project could be a start. I’d love if journalctl and syslogd etc had a flag to anonymize the log output.
Personally often times I just open the screenshot in gimp and pixelate out the areas I want hidden, but that’s not an automated solution.
https://gitlab.gnome.org/chergert/ptyxis
Ptyxis is my current go-to. It can detect available pods or toolboxes (maybe docker too haven’t tested it) and you can open terminals directly into them. It also highlights ssh terms and root shells differently.
There are a huge number of built-in color schemes as well and I’ve had no trouble finding any configuration option I’ve found myself wanting to look for.
It’s also available on flathub so it’s easily installed in most distros.