vite-logger
v0.0.1
Published
unified vite plugin’s logger fork from vite
Downloads
188
Maintainers
Readme
vite-logger
unified vite plugin’s logger fork from vite.
Usage
- run
yarn add vite-logger --dev
import { createLogger } from 'vite-logger';
import chalk from 'chalk';
const logger = createLogger('info', true);
logger.warn(
chalk.yellow.bold(
`this is a warn message only print with logLevel >= 'warn' ` +
`and can also mixed by chalk`
)
)
Options
level
Type: 'error' | 'warn' | 'info' | 'silent'
Default: silent
allowClearScreen
Type: Boolean
Default: false