## 调试

| 食谱                                                    | 箱子                                                                            | 类别                                    |
| ------------------------------------------------------- | ------------------------------------------------------------------------------- | --------------------------------------- |
| [将调试消息，记录到控制台][ex-log-debug]                | [![log-badge]][log] [![env_logger-badge]][env_logger]                           | [![cat-debugging-badge]][cat-debugging] |
| [将错误消息，记录到控制台][ex-log-error]                | [![log-badge]][log] [![env_logger-badge]][env_logger]                           | [![cat-debugging-badge]][cat-debugging] |
| [记录到 stdout ，而不是 stderr][ex-log-stdout]          | [![log-badge]][log] [![env_logger-badge]][env_logger]                           | [![cat-debugging-badge]][cat-debugging] |
| [使用自定义记录器，记录消息][ex-log-custom-logger]      | [![log-badge]][log]                                                             | [![cat-debugging-badge]][cat-debugging] |
| [记录到 Unix 系统日志][ex-log-syslog]                   | [![log-badge]][log] [![syslog-badge]][syslog]                                   | [![cat-debugging-badge]][cat-debugging] |
| [启用每个模块的日志级别][ex-log-mod]                    | [![log-badge]][log] [![env_logger-badge]][env_logger]                           | [![cat-debugging-badge]][cat-debugging] |
| [使用自定义环境变量，设置日志记录][ex-log-env-variable] | [![log-badge]][log] [![env_logger-badge]][env_logger]                           | [![cat-debugging-badge]][cat-debugging] |
| [在日志消息中，包含时间戳][ex-log-timestamp]            | [![log-badge]][log] [![env_logger-badge]][env_logger] [![chrono-badge]][chrono] | [![cat-debugging-badge]][cat-debugging] |
| [将消息记录，到自定义位置][ex-log-custom]               | [![log-badge]][log] [![log4rs-badge]][log4rs]                                   | [![cat-debugging-badge]][cat-debugging] |

[ex-log-debug]: development_tools/debugging/log.zh.html#log-a-debug-message-to-the-console
[ex-log-error]: development_tools/debugging/log.zh.html#log-an-error-message-to-the-console
[ex-log-stdout]: development_tools/debugging/log.zh.html#log-to-stdout-instead-of-stderr
[ex-log-custom-logger]: development_tools/debugging/log.zh.html#log-messages-with-a-custom-logger
[ex-log-syslog]: development_tools/debugging/log.zh.html#log-to-the-unix-syslog
[ex-log-mod]: development_tools/debugging/config_log.zh.html#enable-log-levels-per-module
[ex-log-env-variable]: development_tools/debugging/config_log.zh.html#use-a-custom-environment-variable-to-set-up-logging
[ex-log-timestamp]: development_tools/debugging/config_log.zh.html#include-timestamp-in-log-messages
[ex-log-custom]: development_tools/debugging/config_log.zh.html#log-messages-to-a-custom-location

{{#include ../links.zh.md}}
