Documentation on autobindLoggers out of date?
Opened this issue · 0 comments
haayman-imagem commented
Hi,
I'm trying to implement the autobindLoggers functionality, but it seems the documentation on https://github.com/node-ts/logger/tree/master/packages/logger-core about this is out of date
- the function is named autobindLoggers, instead of autobindLogger
- I get typescript errors when I try to implement this code:
super (bind => {
// Creates new named loggers for all targets in the container, including the above services
autoBindLoggers(bind)
})
}
Parameter 'bind' implicitly has an 'any' type, but a better type may be inferred from usage.ts(7044)
Type '(bind: any) => void' has no properties in common with type 'ContainerOptions'.ts(2559)
What ís the correct way to implement this?