code: function init(config){
      var logger = new LogglyLogger(config);
      logger.validateConfig();
  
      logger.config = config;
      logger.client = loggly.createClient({
          token: config.token,
          subdomain: config.application,
          auth: config.auth,
  
          // TOOD: pushing more tags onto this array, or not using them, should be configurable
          tags: [
              config.domain,
              config.machine
          ]
  
          // Loggly docs say it uses json stringify if json:true
          // JSON stringify does not handle Errors or circulare references well
          // Logger.createEntry handles them well
      });
      return logger;
  }
docs: The init function should be called at the beginning of the object life cycle. This method will be responsible
  for doing all of the setup for the adapter.
  
  @param config Object that will contain the path to write the log file and the type of adapter.