commit 292ac8e0b1baa5fde56ef7f9869dd19eae29599d Author: Isis Lovecruft isis@torproject.org Date: Tue Feb 11 13:54:53 2014 +0000
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. --- bridgedb.conf | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/bridgedb.conf b/bridgedb.conf index 006f715..0b27adc 100644 --- a/bridgedb.conf +++ b/bridgedb.conf @@ -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 \ #------------------------------------------------------------------------------