function Debug(...rest) {
  if (new.target) {
    /**
     * @param id
     * @param stats
     * @param rest
     */
    this.debug = (id, stats, ...rest) => {
      debug(id)(...rest);
    };
    return;
  }
  return new Debug(...rest);
}
function Debug(...rest) {
  if (new.target) {
    
    this.debug = (id, stats, ...rest) => {
      debug(id)(...rest);
    };
    return;
  }
  return new Debug(...rest);
}
function Debug ( ... rest ) { if ( new . target ) { /**
     * @param id
     * @param stats
     * @param rest
     */ this . debug = ( id , stats , ... rest ) => { debug ( id ) ( ... rest ) ; } ; return ; } return new Debug ( ... rest ) ; }
Logtown debug wrapper
Logtown debug wrapper