mentie
v0.5.4
Published
Mentor's toolbelt
Readme
Mentie
Mentor's favorite helpers.
Logging
Logging options:
LOGLEVEL/?loglevel=: Set the log level. Options:info: Keepslog.info(),log.warn(),log.error()visiblewarn: Keepslog.warn(),log.error()visibleerror: Keeps onlylog.error()visible- Note that
log.warn()adds a ⚠️ emoji andlog.error()adds a 🚨 emoji. - Note that
log()only logs in development mode (detected in environment or throughNODE_ENV/?debug=true).
LOG_ANNOTATIONS/?log_annotations: Comma separates list of annotations. Options:timestamp: AddDate.now()to the log message.isotime: Addnew Date().toISOString()to the log message.stringify: Stringifies log messages (useful in environments where variables references might we deleted before you inspect them)
