forked from justinkames/vuejs-logger
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I can't just use a plain string for logLevel. It leads to TypeScript errors. I have to do:
import VueLogger from 'vuejs3-logger'
import { LogLevels } from 'vuejs3-logger/dist/enum/log-levels'
const LOG_THRESHOLD = isProduction() ? LogLevels.ERROR : LogLevels.DEBUG
const vueLoggerOptions = {
isEnabled: true,
logLevel: LOG_THRESHOLD,
stringifyArguments: false,
showLogLevel: true,
showMethodName: true,
separator: '|',
showConsoleColors: true,
}
app.use(VueLogger, vueLoggerOptions)
The README
should reflect this.
sutermamrehacek
Metadata
Metadata
Assignees
Labels
No labels