Documents
server-default-log-level
server-default-log-level
Type
External
Status
Published
Created
Mar 5, 2026
Updated
Mar 5, 2026

import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'

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.

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#

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.

.

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.