plugin/log: support multi nameScope (#2420)

This commit is contained in:
ckcd
2019-01-08 15:40:50 +08:00
committed by Miek Gieben
parent 53d1afbaf2
commit 418edd2a2f
3 changed files with 69 additions and 25 deletions

View File

@@ -23,10 +23,10 @@ log
Or if you want/need slightly more control:
~~~ txt
log [NAME] [FORMAT]
log [NAMES...] [FORMAT]
~~~
* `NAME` is the name to match in order to be logged
* `NAMES` is the name list to match in order to be logged
* `FORMAT` is the log format to use (default is Common Log Format), `{common}` is used as a shortcut
for the Common Log Format. You can also use `{combined}` for a format that adds the query opcode
`{>opcode}` to the Common Log Format.
@@ -34,7 +34,7 @@ log [NAME] [FORMAT]
You can further specify the classes of responses that get logged:
~~~ txt
log [NAME] [FORMAT] {
log [NAMES...] [FORMAT] {
class CLASSES...
}
~~~