docs: async function initLog({ logger = DEFAULT_LOGGER, debug = noop }) {
    log('debug', 'Logging service initialized.');
  
    return log;
  
    /**
     * Logging function
     * @param  {String}  type
     * Log type
     * @param  {...*}    args
     * Log contents
     * @return {void}
     * @example
     * log('debug', 'Luke, I am your father!')
     */
    function log(type, ...args) {
      // The stack type allows to filter logs in testing
      // since the stack files paths vary between systems
      if (debug && ('debug' === type || 'stack' === type)) {
        debug(...args);
        return;
      }
      logger[logger[type] ? type : 'error'](...args);
    }
  }