From 511a2c039787a1d48cd7872f1a6edbdd2764a939 Mon Sep 17 00:00:00 2001 From: Mike Jang <3287976+mjang@users.noreply.github.com> Date: Fri, 11 Apr 2025 07:43:35 -0700 Subject: [PATCH] Revert "Update logging.md (#390)" This reverts commit 26a1c7e9c2784596b19af298a5557c615194f764. --- content/nginx/admin-guide/monitoring/logging.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/nginx/admin-guide/monitoring/logging.md b/content/nginx/admin-guide/monitoring/logging.md index b2f7c0e98..cc6c3b258 100644 --- a/content/nginx/admin-guide/monitoring/logging.md +++ b/content/nginx/admin-guide/monitoring/logging.md @@ -2,7 +2,7 @@ description: Capture detailed information about errors and request processing in log files, either locally or via syslog. docs: DOCS-426 -title: Configure Logging +title: Configuring Logging toc: true weight: 200 type: @@ -12,7 +12,7 @@ type: This article describes how to configure logging of errors and processed requests in NGINX Open Source and NGINX Plus. -## Set Up the Error Log +## Setting Up the Error Log NGINX writes information about encountered issues of different severity levels to the error log. The [error_log](https://nginx.org/en/docs/ngx_core_module.html#error_log) directive sets up logging to a particular file, `stderr`, or `syslog` and specifies the minimal severity level of messages to log. By default, the error log is located at **logs/error.log** (the absolute path depends on the operating system and installation), and messages from all severity levels above the one specified are logged. @@ -30,7 +30,7 @@ The default setting of the error log works globally. To override it, place the [ -## Set Up the Access Log +## Setting Up the Access Log NGINX writes information about client requests in the access log right after the request is processed. By default, the access log is located at **logs/access.log**, and the information is written to the log in the predefined **combined** format. To override the default setting, use the [log_format](https://nginx.org/en/docs/http/ngx_http_log_module.html#log_format) directive to change the format of logged messages, as well as the [access_log](https://nginx.org/en/docs/http/ngx_http_log_module.html#access_log) directive to specify the location of the log and its format. The log format is defined using variables.