]> git.ipfire.org Git - thirdparty/tornado.git/commit
Revamp logging configuration.
authorBen Darnell <bdarnell@beaker.local>
Tue, 2 Mar 2010 02:55:38 +0000 (18:55 -0800)
committerBen Darnell <bdarnell@beaker.local>
Tue, 2 Mar 2010 03:18:04 +0000 (19:18 -0800)
commit62cdb36b6c97100bbee827b2fd73bd74e4b72a64
tree1086a32dfaa55c0e89a99b0588bb27a5b2a38def
parent61f0fafe4bc8d5aa077767ef6c3dcebd9acfc34b
Revamp logging configuration.

* If --logging=none, tornado will not touch the python logging config.
* Colored output is optional.  If curses is not available or stderr is not
  a tty, non-colorized output will be used.
* Log output to stderr can be suppressed with --log_to_stderr=false
* Logs can be written to a file (non-colorized) with --log_file_prefix.
  Logs will be rotated, which can be controlled with --log_file_max_size
  and --log_file_num_backups.
* By default, logs go to a file if --log_file_prefix is set and to stderr
  if it is not.  To log to both stderr and a file, --log_to_stderr must
  be set to true explicitly.
tornado/options.py