code: function _l(message,level){
      //logging function
      if (level === undefined){
        //default to level info
        level = LEVEL_DEBUG;
      }
  
      if (message === undefined){
        //default to level info
        message = 'message not defined!';
      }
  
      switch (level){
        case LEVEL_TRACE:
          if (LEVEL_CURRENT >= LEVEL_TRACE){
            console.log('TRACE: ' + message);
          }
          break;
        case LEVEL_DEBUG:
          if (LEVEL_CURRENT >= LEVEL_DEBUG){
            console.log('DEBUG: ' + message);
          }
          break;
        case LEVEL_INFO:
          if (LEVEL_CURRENT >= LEVEL_INFO){
            console.log('INFO: ' + message);
          }
          break;
        case LEVEL_ERROR:
          if (LEVEL_CURRENT >= LEVEL_ERROR){
            console.log('ERROR: ' + message);
          }
          break;
      }
    }
docs: general helpers