Skip to content

Documentation on autobindLoggers out of date? #19

Description

@haayman-imagem

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions