3 ms·
Really, have sane log message types and include ”audit” as one of them. Log levels could be considered an anti-pattern.
by cluckindan 10mo ago
Really, have sane log message types and include ”audit” as one of them.
Log levels could be considered an anti-pattern.
- hu3 10mo agoI like this. But doesn't it make sense to categorize en Exception thrown as an erro somehow? And a new user registration as an email info? Perhaps use tags then?
- cluckindan 10mo agoSome kind of ”Error” is of course one of the sane message types. ”Warning” and ”info” might be as well. ”Verbose”, ”debug”, ”trace” and ”silly” are definitely not, as those describe a different thing altogether, and would probably be better instrumented through something like the npm ”debug” package.