Refactor dologmsg
This has a few advantages:
- No need to pass an object meant to be used as a cli helper to a function not related to the cli.
- Being able to keep the state (the common parameters) and improve reusage. This is done with a frozen dataclass, so it's very similar to a lambda but allows easy type inference (and checks).
- Add a more detailed name that point to things being logged in SAL.
Bug: T297090
Signed-off-by: David Caro <dcaro@wikimedia.org>
Change-Id: Icdb91dc16b8da78793b3d29556d691fe66915b07
Signed-off-by: David Caro <dcaro@wikimedia.org>