How can I override log level?

Viewed 1215

I am running Strapi 3.2.5 in development mode (strapi develop).

I would like to change the default log level (debug) to something more verbose (trace) in order to troubleshoot server error I am getting from strapi admin panel (400 response for example).

When overriding the STRAPI_LOG_LEVEL environment variable like mentionned in the doc here, I am getting this message: debug STRAPI_LOG_LEVEL environment variable is overridden by logger middleware. It only applies outside Strapi's middleware context.

What is Strapi’s middleware context? And if the log level is not customizable in my case, what would be the solution to get more details on the reason of the 400 response (without having to breaking into the the source)?

1 Answers
Related