Skip to content

Make logging customizable #472

@sapegin

Description

@sapegin

Right now Styleguidist uses console.log to show some potentially useful messages like:

No webpack config found. You may need to specify "webpackConfig" option in your style guide config:
https://github.com/styleguidist/react-styleguidist/blob/master/docs/Webpack.md

We should do it only when Styleguidist is started from CLI, not from the API (or tests). Would be nice to be able to customize the logging somehow — I don’t really know what would be the right approach — maybe pass a logging function everywhere or something like that.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions