Logger
Collect and manage development, debug, and error messages in one place.
import { Logger } from 'eyeson';
Logger.error(msg); // output error
Logger.warn(msg); // output warning
Logger.info(msg); // output log
Logger.debug(msg); // output debug
Since version 1.8.9, Logger behaviour is customizable.
import eyeson from 'eyeson';
eyeson.config.verbose = false; // default true
Setting verbose=false
will prevent Logger.info()
and Logger.debug()
messages.