Closed ofekisr closed 2 years ago
Thanks, I have corrected the typings in PR #1304.
On initialisation, the index.js
will always pass the 4 parameters to configure the specific appender.
https://github.com/log4js-node/log4js-node/blob/0c37f4063e5bada95803087722a57cf9f2034a50/lib/appenders/index.js#L117-L122
But it is up to individual appenders whether to use and take in the parameters.
@lamweili thanks!! you should fix the documentation as well to be more precise, I understand how to build a custom appnder via the src code and not only from the documentation You can contact me for more details ofek1israel@gmail.com
@ofekisr Pull requests are always welcomed!
There is some inconsistency between the documentation and typescript types regarding the configure signature of AppenderModule and there is no findAppender declaration in log4js.d.ts
What do you think?
please review the three states below:
from: appenders Advanced configuration doc - configure defined with four arguments
from: writing appenders doc - configure defined with only two arguments
from: https://github.com/log4js-node/log4js-node/blob/master/types/log4js.d.ts - configure defined without findAppender there is no declaration of findAppender - I can't defined my own Appender as middleware Appender - I can't reach the next appenders