You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before using log4js, I use console to log everything. By using log4js, I want to print everything into out.log and in addition, print all errors into err.log.
After reading the document, I should do it as follows:
Define 3 appenders: out with type: 'stdout', err with type: 'stderr' and logErrOnly with type: 'logLevelFilter', logLevel: 'error'
Define a default category with 2 appenders out and logErrOnly.
That's what I found in the FAQ section (also see docs/logLevelFilter.md)
How I propose to implement
I'd like to know, if it is considered to be put into roadmap, to configure it is a straightfoward way like this
Hi Project Maintainer.
How I implement now
Before using log4js, I use
console
to log everything. By using log4js, I want to print everything intoout.log
and in addition, print all errors intoerr.log
.After reading the document, I should do it as follows:
type: 'stdout'
, err withtype: 'stderr'
and logErrOnly withtype: 'logLevelFilter', logLevel: 'error'
default
category with 2 appendersout
andlogErrOnly
.That's what I found in the FAQ section (also see
docs/logLevelFilter.md
)How I propose to implement
I'd like to know, if it is considered to be put into roadmap, to configure it is a straightfoward way like this
The text was updated successfully, but these errors were encountered: