We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
README
The text was updated successfully, but these errors were encountered:
Yes, please! I just ran into this today and it is really an unnecessary first bump.
You can also just change one line
logLevel: isProduction ? LogLevels.ERROR : LogLevels.DEBUG,
To keep the original example only minimally changed.
Sorry, something went wrong.
No branches or pull requests
I can't just use a plain string for logLevel. It leads to TypeScript errors. I have to do:
The
README
should reflect this.The text was updated successfully, but these errors were encountered: