protoactor-dotnet icon indicating copy to clipboard operation
protoactor-dotnet copied to clipboard

Make logging templates more consistent

Open rogeralsing opened this issue 2 years ago • 1 comments

"[Cluster][Kubernetes] Some Log" vs. "Gossip sent some data"

let's apply [CoreModule][SubModule] templates to built in logs. e.g. in Gossip

rogeralsing avatar May 25 '22 10:05 rogeralsing

When someone gets on to enforce this maybe it's worth considering making CoreModule and SubModule a part of the structured log. I.e a template could look like this: "[{CoreModule}] [{SubModule}] Log message..."

Also to make this more fun we could have source generators extend upon Microsoft's source generators for LoggerMessage to generate logger messages with this specific template.

woksin avatar Jun 06 '22 07:06 woksin