Styled console-log function.
(console.logにスタイルを付与します。)
yarn add styled-console-log
import Log from 'styled-console-log'
Log('something warnning message', 'warn')
Log('something error message\n\nmultiple lines...', 'error')
Log('something info message', 'info')
Log('something success message\n\n3rd parameter is UPPERCASE bool', 'success', true)
Provided with 4 styles now.
- 'warn'
- 'error'
- 'info'
- 'success'
- Customization features
- Animate style