How to use the strapi-utils.logger.info function in strapi-utils

To help you get started, we’ve selected a few strapi-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github strapi / strapi / packages / strapi / lib / commands / generate.js View on Github external
success() {
      if (!scope.outputPath && scope.filename && scope.destDir) {
        scope.outputPath = scope.destDir + scope.filename;
      }

      if (scope.generatorType !== 'new') {
        logger.info(
          'Generated a new ' +
            scope.generatorType +
            ' `' +
            scope.humanizeId +
            '` at ' +
            scope.humanizedPath +
            '.'
        ); // eslint-disable-line prefer-template
      }

      process.exit(0);
    },
  });
github strapi / strapi / packages / strapi / bin / strapi-uninstall.js View on Github external
rimraf(pluginPath, (err) => {
    if (err) {
      logger.error('An error occurred during plugin uninstallation.');
      process.exit(1);
    }

    // Success.
    logger.info('The plugin has been successfully uninstalled.');
    process.exit(0);
  });
};
github strapi / strapi / packages / strapi / bin / strapi-generate.js View on Github external
success: function returnSuccess() {
      if (!scope.outputPath && scope.filename && scope.destDir) {
        scope.outputPath = scope.destDir + scope.filename;
      }

      if (scope.generatorType !== 'new') {
        logger.info('Generated a new ' + scope.generatorType + ' `' + scope.humanizeId + '` at ' + scope.humanizedPath + '.'); // eslint-disable-line prefer-template
      }

      process.exit(0);
    }
  });
github strapi / strapi / packages / strapi / bin / strapi-migrate-make.js View on Github external
success: function returnSuccess() {
      logger.info('Migration file successfully generated at `' + path.resolve(scope.rootPath, 'data', 'migrations', scope.connection) + '`.');
      logger.info('Seed file created at `' + path.resolve(scope.rootPath, 'data', 'seeds', scope.connection) + '`.');
      logger.warn('This migration has been automatically generated.');
      logger.warn('We strongly advise you to manually verify those information.');
      process.exit(0);
    }
  });
github strapi / strapi / packages / strapi / bin / strapi-update.js View on Github external
exec('npm install', function (err) {
                if (err) {
                  logger.error('Impossible to install dependencies for `strapi-generate-' + name + '`.');
                  console.log(err);
                } else {
                  logger.info('Successfully installed dependencies for `strapi-generate-' + name + '`.');
                }
              });
            }
github strapi / strapi / packages / strapi / bin / strapi-migrate-run.js View on Github external
.then(() => {
      logger.info('Migration successfully made for the `' + scope.connection + '` connection!');
      process.exit(0);
    });
};
github strapi / strapi / packages / strapi / bin / strapi-generate.js View on Github external
success: function returnSuccess() {
      if (!scope.outputPath && scope.filename && scope.destDir) {
        scope.outputPath = scope.destDir + scope.filename;
      }

      if (scope.generatorType !== 'new') {
        logger.info('Generated a new ' + scope.generatorType + ' `' + scope.humanizeId + '` at ' + scope.humanizedPath + '.');
      }

      process.exit(0);
    }
  });
github strapi / strapi / packages / strapi / bin / strapi-migrate-rollback.js View on Github external
.then(() => {
      logger.info('Rollback successfully made for the `' + scope.connection + '` connection!');
      process.exit(0);
    });
};
github strapi / strapi / packages / strapi-hook-redis / lib / utils / connectivity.js View on Github external
redis.connect((err) => {
    redis.disconnect();

    if (err) {
      logger.warn('Database connection has failed! Make sure your database is running.');
      return error();
    }

    logger.info('The app has been connected to the database successfully!');

    execSync(`rm -r "${scope.tmpPath}"`);

    logger.info('Copying the dashboard...');

    success();
  });
};
github strapi / strapi / packages / strapi-hook-redis / lib / utils / connectivity.js View on Github external
redis.connect((err) => {
    redis.disconnect();

    if (err) {
      logger.warn('Database connection has failed! Make sure your database is running.');
      return error();
    }

    logger.info('The app has been connected to the database successfully!');

    execSync(`rm -r "${scope.tmpPath}"`);

    logger.info('Copying the dashboard...');

    success();
  });
};