How to use the react-styleguidist/lib/scripts/logger function in react-styleguidist

To help you get started, we’ve selected a few react-styleguidist 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 vue-styleguidist / vue-styleguidist / packages / vue-styleguidist / src / scripts / binutils.ts View on Github external
export function updateConfig(config: ProcessedStyleGuidistConfigObject) {
	// Set verbose mode from config option or command line switch
	config.verbose = config.verbose || !!process.env.VUESG_VERBOSE

	// Setup logger *before* config validation (because validations may use logger to print warnings)
	setupLogger(config.logger, config.verbose)

	return config
}
github vue-styleguidist / vue-styleguidist / packages / vue-styleguidist / src / scripts / index.ts View on Github external
config = getConfig(config, (config: ProcessedStyleGuidistConfigObject) => {
		setupLogger(config.logger, config.verbose, {})
		if (typeof updateConfig === 'function') {
			updateConfig(config)
		}
		return config
	})