Skip to main content

Server log level is http

You can adjust the server log level in the configuration to control how much detail you see in your server logs. If you want to see more or less verbose logs in your server logs, this feature allows you to customize it according to your needs.

This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.

🔌 Is this breaking change affecting plugins?No
🤖 Is this breaking change automatically handled by a codemod?No

Breaking change description

In Strapi v4

The log level defaults to silly, which means that every log is shown, providing the most detailed information.

In Strapi 5

The log level defaults to http. This means that sillyand debug level logs are hidden by default, offering a less verbose log output.

Migration

This section regroups useful notes and procedures about the introduced breaking change.

Notes

The log level can be configured either in the server.js file as described in the following Manual migration section, or as described in the middlewares configuration documentation.

See the list of Winston log levels.

Manual migration

To migrate to Strapi 5:

  1. Open your server configuration file (config/server).
  2. Locate the { logger: { config: { level: 'debug' } } section.
  3. Modify the level value to your preferred log level, such as silly, debug, info, warn, or error.