Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

441
Vistas
Log levels in Nginx: NGX_LOG_DEBUG_HTTP vs NGX_LOG_DEBUG

I am inspecting some Nginx code, in particular the code for Nginx module - upstream health check. At some places I see NGX_LOG_DEBUG_HTTP as the logging level, at others NGX_LOG_DEBUG. Could someone tell me which logging level is recommended to be used in which scenario?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

This link has the required information. Here are few scenarios to explain how it works:

If your nginx.conf has log level defined as the generic debug

error_log error.log debug;

then all your logging statments with debug levels prefixed with NGX_LOG_DEBUG will be logged. For e.g.

ngx_log_debug(NGX_LOG_DEBUG, event->log, 0, "test"); ngx_log_debug(NGX_LOG_DEBUG_HTTP, event->log, 0, "test"); ngx_log_debug(NGX_LOG_DEBUG_CORE, event->log, 0, "test");

But if your nginx.conf is configured to log a specific kind of debug message, only those will be logged.

So, with this config:

error_log error.log debug_http;

this will happen:

ngx_log_debug(NGX_LOG_DEBUG_CORE, event->log, 0, "test"); //will not show up in the log
ngx_log_debug(NGX_LOG_DEBUG_HTTP, event->log, 0, "test"); //will show up in the log
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda