Giter Club home page Giter Club logo

Comments (10)

RobinTail avatar RobinTail commented on July 28, 2024 1

I think I'm getting now what's happening there.
Please stand by....

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

how do you use that function createLogger that you made?
Please provide more context for reproducing the issue, @daniel-white

Please also read the corresponding article in Readme:
https://github.com/RobinTail/express-zod-api?tab=readme-ov-file#customizing-logger

from express-zod-api.

daniel-white avatar daniel-white commented on July 28, 2024

so createLogger is just a factory to encapsulate all the logging options - essentially the usage is like this

const logger = createLogger('info');
const config = createConfig({ logger }); // from express-zod-api, infers that it needs winston!

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

I made a test for the function isSimplifiedWinstonConfig() against the pino instance as pino({level: "info"})

#1607

And that test passes. The function basically tells whether or not should winston be loaded instead.
Can not reproduce that behaviour so far.

What is your actual version of pino, @daniel-white

Could you run yarn why pino and tell me what is says?

from express-zod-api.

daniel-white avatar daniel-white commented on July 28, 2024

hm interesting i'm using 8.19.0 as well. looks like a good test to have and ill keep playing on my end.

also, fwiw, i'm using typescript's strict mode, should that matter.

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

Are you sure you're supplying "info" to createLogger()?
Not one of these: "silent", "warn", "debug" , @daniel-white

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

Since when it's "debug", the test fails and that's I believe exactly the case, @daniel-white

from express-zod-api.

daniel-white avatar daniel-white commented on July 28, 2024

@RobinTail i was doing a bit more. i'm getting that value from envvars, i opened it up to more levels. it might have been on debug yesterday

I'm allowing

['error', 'warn', 'info', 'debug', 'trace']

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

Thank you @daniel-white , the issue confirmed.
I'll do my best to fix it ASAP.

from express-zod-api.

RobinTail avatar RobinTail commented on July 28, 2024

@daniel-white ,
🚀 the issue fixed in the recently released version 17.2.1 .
Thank you for the contribution!

from express-zod-api.

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.