Hacker News new | ask | show | jobs
by dmurray 1507 days ago
The increased detail also clutters the source, though.

As I write this I realise that the "right" solution is that my IDE also folds away log calls of below some settable priority... Then I need a linter to prevent any code with side effects from running in a log line... Then I need to work in a language where that kind of static analysis is definitely possible... Maybe it's not so simple.

1 comments

Create a logging method/function, llog() or something, with named parameters and whatnot.