3 ms·
> Instead, call your syslog/OSLog/logger function, with an appropriate severity level (probably DEBUG) and some easily filterable preamble Good patterns for J
by TAKEMYMONEY 4y ago
> Instead, call your syslog/OSLog/logger function, with an appropriate severity level (probably DEBUG) and some easily filterable preamble
Good patterns for JS here? Maybe console.debug() or console.warn()?
- vgel 4y agoNot sure what the best practice is, but probably you don't want console.debug -- IIRC debug is logged by default, so unless you strip console logs in prod (which defeats the purpose), your users will have their console spammed.