Log to console by default. #832

Version 19 removed any logging by default. This logs everything to the
console by default.
This commit is contained in:
Collin Anderson 2014-09-16 10:15:17 -04:00
parent 901d8f94b3
commit 7be15d6334
6 changed files with 41 additions and 5 deletions

View File

@ -90,7 +90,7 @@
])
return iter([data])
(tutorial) $ ../bin/gunicorn --log-file - -w 4 myapp:app
(tutorial) $ ../bin/gunicorn -w 4 myapp:app
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874

View File

@ -1,6 +1,22 @@
Changelog - 2014
================
20.0 / unreleased
-----------------
Changes
-------
Core
++++
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863`_: fix race condition error.
Logging
+++++++
- fix `#832 <https://github.com/benoitc/gunicorn/issues/835>`_: log to console by default.
19.1.1 / 2014-08-16
-------------------

View File

@ -100,8 +100,9 @@ to remove this issue.
Why I don't see any logs in the console?
----------------------------------------
Since the version R19, Gunicorn doesn't log by default in the console.
To watch the logs in the console you now need to use the option ``--log-file=-``.
In version R19, Gunicorn doesn't log by default in the console.
To watch the logs in the console you need to use the option ``--log-file=-``.
In version R20, Gunicorn logs to the console by default again.
Kernel Parameters
=================

View File

@ -1,6 +1,22 @@
Changelog
=========
20.0 / unreleased
-----------------
Changes
-------
Core
++++
- fix `#863 <https://github.com/benoitc/gunicorn/issues/863`_: fix race condition error.
Logging
+++++++
- fix `#832 <https://github.com/benoitc/gunicorn/issues/832`_: log to console by default.
19.1.1 / 2014-08-16
-------------------

View File

@ -469,12 +469,15 @@ errorlog
~~~~~~~~
* ``--error-logfile FILE, --log-file FILE``
* ``None``
* ``-``
The Error log file to write to.
"-" means log to stderr.
.. versionchanged:: 20.0
Log to ``stderr`` by default.
loglevel
~~~~~~~~

View File

@ -1045,7 +1045,7 @@ class ErrorLog(Setting):
cli = ["--error-logfile", "--log-file"]
meta = "FILE"
validator = validate_string
default = None
default = '-'
desc = """\
The Error log file to write to.