Accept cookies for analytics, social media, and advertising, or learn more and adjust your preferences. These cookies are on by default for visitors outside the UK and EEA. Privacy Notice.
ngx_log_error
(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, const char *fmt, ...)¶Sends an error to the NGINX log file, this accepts a variable list of parameters using printf format placeholders.
Parameters: |
|
---|
The level can be one of the following:
Level | Description |
---|---|
NGX_LOG_DEBUG | Debug level |
NGX_LOG_INFO | Information level |
NGX_LOG_NOTICE | Notice level |
NGX_LOG_WARN | Warning level |
NGX_LOG_ERR | Error level |
NGX_LOG_CRIT | Critical error level |
NGX_LOG_ALERT | Alert error level |
NGX_LOG_EMERG | Emergency error level |
ngx_log_stderr
(ngx_err_t err, const char *fmt, ...)¶Sends an error to the system’s stderr. Accepts a variable list of parameters using printf format placeholders.
Parameters: |
|
---|
ngx_log_abort
(ngx_err_t err, const char *fmt, ...)¶Aborts NGINX and sends an error message to stderr. Accepts a variable list of parameters using printf format placeholders.
Parameters: |
|
---|
ngx_log_debug
(ngx_uint_t level, ngx_log_t *log, ngx_err_t err, const char *fmt, ...)¶An alias to ngx_log_error()
but the level is only checked to see if that level should be logged. All calls to this will actually be logged as NGX_LOG_DEBUG
There are also aliases to this, ngx_log_debug0
to ngx_log_debug8
which take exactly 0 to 8 arguments for the format placeholders depending on which one is used
Parameters: |
|
---|
ngx_conf_log_error
(ngx_uint_t level, ngx_conf_t *cf, ngx_err_t err, const char *fmt, ...)¶Logs an error in the same way as ngx_log_error()
but uses a pointer to the configuration object so that details of the configuration file can be logged.
Parameters: |
|
---|