Log entries generated by this code are not easily discernible from other log entries. Using a log prefix requires the developer to include the prefix in each log event entry.
Proposed Solution
A utility method/class that wraps logging and adds a consistent log entry prefix.
From @ryepup:
nit/future: might be worth a tiny leveled logging wrapper to ensure we always have the acme-njs: [$MODULE] prefix and control verbosity.
import {Logger} from './logger'
const log = new Logger("utils")
...
log.info(`Generated a new account key and saved it to ${path}`)
Problem
Log entries generated by this code are not easily discernible from other log entries. Using a log prefix requires the developer to include the prefix in each log event entry.
Proposed Solution
A utility method/class that wraps logging and adds a consistent log entry prefix.
From @ryepup: