logging: stdout outlet: include time in output if tty or forced through config

This commit is contained in:
Christian Schwarz
2017-11-14 21:51:19 +01:00
parent ed68bffea5
commit 476348689a
4 changed files with 77 additions and 37 deletions
+3
View File
@@ -115,8 +115,11 @@ Formats
- minimum :ref:`log level <logging-levels>`
* - ``format``
- output :ref:`format <logging-formats>`
* - ``time``
- always include time in output (``true`` or ``false``)
Writes all log entries with minimum level ``level`` formatted by ``format`` to stdout.
If stdout is a tty, interactive usage is assumed and the current time is included in the output.
Can only be specified once.