Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add tag to listeners documentation (#14803)
Browse files Browse the repository at this point in the history
* Add `tag` to `listeners` documentation

* newsfile
  • Loading branch information
dklimpel authored Jan 11, 2023
1 parent 06ab64f commit bc7ca70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/14803.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing documentation for `tag` to `listeners` section.
4 changes: 2 additions & 2 deletions docs/usage/administration/request_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ See the following for how to decode the dense data available from the default lo
```


| Part | Explanation |
| Part | Explanation |
| ----- | ------------ |
| AAAA | Timestamp request was logged (not received) |
| BBBB | Logger name (`synapse.access.(http\|https).<tag>`, where 'tag' is defined in the `listeners` config section, normally the port) |
| BBBB | Logger name (`synapse.access.(http\|https).<tag>`, where 'tag' is defined in the [`listeners`](../configuration/config_documentation.md#listeners) config section, normally the port) |
| CCCC | Line number in code |
| DDDD | Log Level |
| EEEE | Request Identifier (This identifier is shared by related log lines)|
Expand Down
4 changes: 4 additions & 0 deletions docs/usage/configuration/config_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ Sub-options for each listener include:

* `port`: the TCP port to bind to.

* `tag`: An alias for the port in the logger name. If set the tag is logged instead
of the port. Default to `None`, is optional and only valid for listener with `type: http`.
See the docs [request log format](../administration/request_log.md).

* `bind_addresses`: a list of local addresses to listen on. The default is
'all local interfaces'.

Expand Down

0 comments on commit bc7ca70

Please sign in to comment.