Giter Club home page Giter Club logo

Comments (8)

riccardo-ditosto-gellify avatar riccardo-ditosto-gellify commented on June 24, 2024 1

I'm also facing the same issue. Was anyone able to solve this?

from nest-winston.

pengzitong avatar pengzitong commented on June 24, 2024 1

如果你在app模块定义了下面的providers,

@module({
    imports: [IdentityModule],
    controllers: [],
    providers: [Logger],
})

那么只能在app模块中使用logger,如果需要在其他模块中使用的话,需要在其他模块的provider中添加Logger,或者将app模块变成全局。

from nest-winston.

iamjaredwalters avatar iamjaredwalters commented on June 24, 2024

I can add the logger as a provider to each module that uses it but the docs claim I don't need this step. Am I misunderstanding them?

from nest-winston.

karolchmiel94 avatar karolchmiel94 commented on June 24, 2024

I had the same issue as you. Make sure that you're not setting logger again with
app.useLogger(app.get(WINSTON_MODULE_NEST_PROVIDER));

from nest-winston.

lijing-2008 avatar lijing-2008 commented on June 24, 2024

I had the same issue as you. Make sure that you're not setting logger again with app.useLogger(app.get(WINSTON_MODULE_NEST_PROVIDER));

I had the same isue as above without setting logger again with app.useLogger as you say. Have you fixed it?

from nest-winston.

github-actions avatar github-actions commented on June 24, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from nest-winston.

github-actions avatar github-actions commented on June 24, 2024

This issue was closed because it has been stalled for 7 days with no activity.

from nest-winston.

johnkoehn avatar johnkoehn commented on June 24, 2024

Could we at the very least update documentation around this?

from nest-winston.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.