Hacker News new | ask | show | jobs
by taeric 1036 days ago
Plist or named arguments doesn't really make too big of a difference, to my eyes. I do recommend Mapped Diagnostic Context style approaches, if you can do it. Passing all arguments that you think may be useful to logs gets unwieldy quickly. Looks particularly absurd when folks start adding parameters to functions for the sole purpose of letting you log them.
1 comments

I'm really happy there's a name for this idea. I've been looking for something like this.