Show Table of Contents
3.8.3. 关于管理接口的审计日志格式器
格式器指定日志条目的格式。
表 3.5. JSON 格式器字段
| 属性 | 描述 |
|---|---|
| include-date | 布尔值,它定义格式化日志记录是否包含时间戳。 |
| date-separator | 包含分隔日期和格式化日志信息的字符的字符串。如果 include-date=false 则被忽略。 |
| date-format | 用于时间戳的 java.text.SimpleDateFormat.可以时别的日期格式。如果 include-date=false 则被忽略。 |
| compact | 如果为 true,它将在一行里格式化 JSON 信息。因为仍有包含新行符的值,所以如果需要在同一行里容纳整个记录,可以设置 escape-new-line 或 escape-control-characters 为 true。 |
| escape-control-characters | 如果为 true,它将所有带有八进制 ASCII 字符的控制字符(带有十进制值 < 32 的 ASCII 条目)转义;例如新行将转义为 '#012'。如果它为 true,它将覆盖 escape-new-line=false。 |
| escape-new-line | 如果为 true 会将所有带有八进制的 ASCII 代码的新行转义,例如 #012。 |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.