Skip to content

Commit 03db4e6

Browse files
author
wuyc
committed
记录日志到syslog.md
1 parent f898aef commit 03db4e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

介绍/记录日志到syslog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 记录日志到 syslog
22

3-
`error_log``access_log` 指令支持把日志记录到 syslog。以下配置参数将使 nginx 日志记录到 syslog:
3+
[error_log](http://nginx.org/en/docs/ngx_core_module.html#error_log)[access_log](http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log) 指令支持把日志记录到 syslog。以下配置参数将使 nginx 日志记录到 syslog:
44

55
```yaml
66
server=address
@@ -19,7 +19,7 @@ facility=string
1919
severity=string
2020
```
2121

22-
> 设置 `access_log` 的消息严重程度,在 [RFC3164](https://tools.ietf.org/html/rfc3164#section-4.1.1) 中定义。可能值与 `error_log` 指令的第二个参数( `level`,级别)相同,默认是 `info`。错误消息的严重程度由 nginx 确定,因此在 `error_log` 指令中将忽略该参数。
22+
> 设置 [access_log](http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log) 的消息严重程度,在 [RFC3164](https://tools.ietf.org/html/rfc3164#section-4.1.1) 中定义。可能值与 [error_log](http://nginx.org/en/docs/ngx_core_module.html#error_log) 指令的第二个参数( `level`,级别)相同,默认是 `info`。错误消息的严重程度由 nginx 确定,因此在 `error_log` 指令中将忽略该参数。
2323
2424
```
2525
tag=string

0 commit comments

Comments
 (0)