Styledictionary/4/Logging

/icons/calendar.svg

Last update

Sep 9, 2024

What Changed

This codemod updates the logging system to be more configurable, as detailed in the Logging docs. You can now customize the verbosity of logs and silence warnings and success logs, in addition to the previous option of setting log: 'error' to change the default behavior to throw warnings as errors.

Before

{
"source": ["tokens.json"],
"log": "error"
}

After

{
"source": [
"tokens.json"
],
"log": {
"warnings": "error",
"verbosity": "default"
}
}

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now