Comments (10)
I think I'm getting now what's happening there.
Please stand by....
from express-zod-api.
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.
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.
I made a test for the function isSimplifiedWinstonConfig()
against the pino instance as pino({level: "info"})
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.
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.
Are you sure you're supplying "info" to createLogger()
?
Not one of these: "silent", "warn", "debug"
, @daniel-white
from express-zod-api.
Since when it's "debug", the test fails and that's I believe exactly the case, @daniel-white
from express-zod-api.
@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.
Thank you @daniel-white , the issue confirmed.
I'll do my best to fix it ASAP.
from express-zod-api.
@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)
- Type error: `BearerSecurity` cannot be named HOT 4
- Make `winston` a peer
- Problem to create routings HOT 5
- Can't use .z.ZodArray as output schema HOT 6
- Task: Restore SWC for `ts-node` when new version released
- Specifying input headers HOT 8
- TypeScript errors TS4023, TS4094 HOT 11
- Multiple servers in Swagger HOT 2
- Export request/response types from generated client HOT 5
- Listening to a configurable hostname HOT 1
- Insufficient types export (TS4023) of `Metadata` HOT 1
- Task: fix NPM warning during publishing
- Cannot create multiple errors response when generate Document
- Set schema name using withMeta
- Type regression from 16.1.0 to 16.2.0 HOT 3
- incorrect pattern field for openapi HOT 4
- What tool did you use to make the handdrawn diagram?
- OpenApi yaml spec has wrong minimum value for doubles HOT 6
- Allow all express-fileupload configurations HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-zod-api.