Unverified Commit 292ac8e0 authored by Isis Lovecruft's avatar Isis Lovecruft
Browse files

Add config options for safelogging and logging threads.

 * ADD several new config options:
    - LOG_THREADS:
       adds the thread name and id, if available, to log messages.

    - LOG_TRACE:
       log the line number, module name, and function name where the log
       call was made.

    - LOG_TIME_FORMAT:
       Useful for when you don't need to be told that it's Feb 11th over
       and over again.
parent 33499da9
......@@ -15,11 +15,15 @@
# for details.
# :copyright: (c) 2007-2013 The Tor Project, Inc.
# (c) 2007-2013, all sentient entities within the AUTHORS file
# :version: 0.0.6
# :version: 0.0.7
#===============================================================================
#
# CHANGELOG:
# ~~~~~~~~~~
# ~~~~~~~~~~
# Changes in version 0.0.7 - 2014-03-31
# * ADD new settings for tracing function calls and thread info within logged
# messages: LOG_THREADS, LOG_TRACE, and LOG_TIME_FORMAT.
#
# Changes in version 0.0.6 - 2014-03-28
# * CHANGE gimp-captchas to be the norm.
# * ADD bucket for support team.
......@@ -133,6 +137,16 @@ SAFELOGGING = True
LOGFILE_COUNT = 5
LOGFILE_ROTATE_SIZE = 10000000
# If True, include thread IDs and numbers in log messages, if available:
LOG_THREADS = False
# If True, include the module name, function name, and line number of the
# calling function where the log message was generated:
LOG_TRACE = True
# A strftime(3) format string that specifies how to log timestamps:
LOG_TIME_FORMAT = "%H:%M:%S"
#---------------------------
# Database/Parsing Options \
#------------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment