lib/metalogger.js
function logLevelAllowedGranular(testlevel) {
  if(!_granularlevels) {
    return;
  }
  var pos = callpositionObj();
  if (pos) {
    var key = 'NODE_LOGGER_LEVEL_' + pos.filename.replace(/[\.\/]/gi, '_');

    if (key in process.env && process.env[key]) {
      var thresholdLevel = process.env[key].toLowerCase();
      return logLevelsObj[testlevel] <= logLevelsObj[thresholdLevel];
    }
  }
  
}
function logLevelAllowedGranular(testlevel) {
  if(!_granularlevels) {
    return;
  }
  var pos = callpositionObj();
  if (pos) {
    var key = 'NODE_LOGGER_LEVEL_' + pos.filename.replace(/[\.\/]/gi, '_');

    if (key in process.env && process.env[key]) {
      var thresholdLevel = process.env[key].toLowerCase();
      return logLevelsObj[testlevel] <= logLevelsObj[thresholdLevel];
    }
  }
  
}
As opposed to logLevelAllowed() this one doesn't take testlevel, since that
needs to be figured out in-function.

We take care not to return an opinion if we don't know.