New issue
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
dot record console.log('xx') #1042
Comments
@junbao520 Please provide an example of your issue.
|
I saw the same issue and it is a misunderstanding: TLDR;
In DetailI landed here because my
Using
SuggestionTo avoid such a misunderstanding it might be better not to auto-default to the |
a warning is logged if the `log` method is used with an unknown log-level this happens whenever people confuse the `log` method with yet another log-level-short method (like in the browser console.log) adjusted `newLevel-test` accordingly rel: log4js-node#1042 Signed-off-by: abernh <a.bernhard@23go.de>
log4js.configure({
appenders: {
cheeseLogs: { type: 'file', filename: 'cheese.log' },
console: { type: 'console' }
},
categories: {
cheese: { appenders: ['cheeseLogs'], level: 'error' },
another: { appenders: ['console'], level: 'trace' },
default: { appenders: ['console', 'cheeseLogs'], level: 'trace' }
}
});
this code dot record console.log()
The text was updated successfully, but these errors were encountered: