Module log

Source
Expand description

The log module.

This module provides an interface into the NGINX logger framework.

Enums§

DebugMask
Debug masks for use with ngx_log_debug_mask, these represent the only accepted values for the mask.

Constants§

DEBUG
This constant is set to true if NGINX is compiled with debug logging (--with-debug).
LOG_BUFFER_SIZE
Size of the static buffer used to format log messages.

Functions§

check_mask
Utility function to provide typed checking of the mask’s field state.
log_debug
Writes the provided buffer to the nginx logger at the debug level.
log_error
Writes the provided buffer to the nginx logger at a specified level.
ngx_cycle_log
Obtains a pointer to the global (cycle) log object.
write_fmt
Format args into a provided buffer