Logging
Logging
The logging module is exposed only as a named import :
import {logging} from 'quras-js'
logging.logger.setAll('info') // sets logging level of quras-js to 'info'
const apiLogger = logging.logger.getLogger('api') // gets the logger for the api package
apiLogger.setLevel('warn') // sets logging level only on the logger for the api package
All logs are piped towards stdout and stderr. Each named package within quras-js will have its own logger. The initial setting for all loggers is 'slient'.