Skip to content

Commit

Permalink
Changelog: 17.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Mar 16, 2024
1 parent ce24660 commit c27a3f2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

## Version 17

### v17.3.0

- Ability to use the configured logger for debugging uploads.
- In the `express-fileupload` package starting from version 1.5.0
[I made the logger customizable](https://github.com/richardgirges/express-fileupload/pull/371).
- Using at least the specified version of `express-fileupload` and having its `debug` option enabled, the upload
related logs are processed using the logger from the `express-zod-api` configuration.
- Please note: the `.debug()` method of the configured logger is used for upload related logging, therefore the
severity `level` of that logger must be configured accordingly in order to see those messages.

```typescript
import { createConfig } from "express-zod-api";
import { Logger } from "winston";

// using Winston logger
declare module "express-zod-api" {
interface LoggerOverrides extends Logger {}
}

export const config = createConfig({
server: {
logger: { level: "debug", color: true }, // simplified Winston config
upload: { debug: true }, // writes debug messages using Winston::debug()
},
});
```

### v17.2.1

- Fixed a bug due to which a custom logger instance could be perceived as a simplified `winston` logger config.
Expand Down

0 comments on commit c27a3f2

Please sign in to comment.