Can someone please help me figure out how to use morgan with a winston logger? I keep getting this error message that says: "[ts] Argument of type 'combined' is not assignable to parameter of type 'FormatFn'." I tried using the combined preset formats, but I'm stuck. Any guidance on how to log the request using my custom logger would be greatly appreciated.
[ts] Argument of type 'combined' is not assignable to parameter of type 'FormatFn'.
app.use(morgan("combined" {
stream(meta: any) {
this.log.info("Request served", meta);
},
objectMode: true,
}));