Add log-format option

This commit is contained in:
Julien Riou 2019-02-16 11:47:30 +01:00
commit 24eb4fe203
No known key found for this signature in database
GPG key ID: BA3E15176E45E85D
9 changed files with 61 additions and 44 deletions

View file

@ -94,5 +94,16 @@ When exclude users list or regex is set and no include option is set, `pgtermina
LISTEN queries are asynchronous. Sessions are set to "idle" state even if they are waiting for messages to be sent to the queue. `pgterminate` can exclude sessions in that state by looking at the last known query starting with "LISTEN", with the `exclude-listeners` parameter.
# Log format
The following placeholders are available to format log messages using `log-format` option:
* `%p`: pid
* `%u`: username
* `%d`: database name
* `%r`: client (host:port)
* `%s`: state
* `%m`: state duration
* `%q`: query
# License
`pgterminate` is released under [The Unlicense](LICENSE) license. Code is under public domain.