Skip to content
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

Documentation on autobindLoggers out of date? #19

Open
haayman-imagem opened this issue May 19, 2020 · 0 comments
Open

Documentation on autobindLoggers out of date? #19

haayman-imagem opened this issue May 19, 2020 · 0 comments

Comments

@haayman-imagem
Copy link

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

  1. the function is named autobindLoggers, instead of autobindLogger
  2. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant