Skip to content

Commit fa61b44

Browse files
author
Richard Jones
committed
more logging goodness
1 parent 4d11869 commit fa61b44

File tree

4 files changed

+41
-6
lines changed

4 files changed

+41
-6
lines changed

TODO.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ This file contains items that need doing before the next release:
33
Required:
44
- documentation of i18n: TAL tags for translation
55
- translation databases in trackers
6+
- implementing of logging for roundup-server, including command-line
7+
switches
68

79

810
Optionally:

doc/admin_guide.txt

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Administration Guide
33
====================
44

5-
:Version: $Revision: 1.11 $
5+
:Version: $Revision: 1.12 $
66

77
.. contents::
88

@@ -40,6 +40,34 @@ There's two "installations" that we talk about when using Roundup:
4040
config.py.
4141

4242

43+
Configuring Roundup's Logging of Messages For Sysadmins
44+
=======================================================
45+
46+
You may configure where Roundup logs messages in your tracker's config.py
47+
file. Roundup will use the standard Python logging implementation when
48+
available. If not, then a very basic logging implementation will be used
49+
(see BasicLogging in the roundup.rlog module for details).
50+
51+
Configuration for "logging" module:
52+
- tracker configuration file specifies the location of a logging
53+
configration file as ``LOGGING_CONFIG``
54+
- ``roundup-server`` specifies the location of a logging configuration
55+
file on the command line
56+
Configuration for "BasicLogging" implementation:
57+
- tracker configuration file specifies the location of a log file
58+
``LOGGING_FILENAME``
59+
- tracker configuration file specifies the level to log to as
60+
``LOGGING_LEVEL``
61+
- ``roundup-server`` specifies the location of a log file on the command
62+
line
63+
- ``roundup-server`` specifies the level to log to on the command line
64+
65+
(``roundup-mailgw`` always logs to the tracker's log file)
66+
67+
In both cases, if no logfile is specified then logging will simply be sent
68+
to sys.stderr with only logging of ERROR messages.
69+
70+
4371
Users and Security
4472
==================
4573

@@ -76,6 +104,7 @@ Email Registration
76104
More information about how to customise your tracker's security settings
77105
may be found in the `customisation documentation`_.
78106

107+
79108
Tasks
80109
=====
81110

doc/customizing.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.141 $
5+
:Version: $Revision: 1.142 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -159,18 +159,18 @@ The configuration variables available are:
159159
**LOGGGING_CONFIG** - ``os.path.join(TRACKER_HOME, 'logging.ini')``
160160
This variable activates logging of Roundup's internal messages using the
161161
standard python ``logging`` module. The module is configured using the
162-
indicated configuration file.
162+
indicated configuration file. See the `admin guide`_ for more detail.
163163

164164
**LOGGING_FILENAME** - ``'/path/to/log file'``
165165
This variable activates logging of Roundup's internal messages using a
166166
built-in minimal logging service which appends messages to the indicated
167-
file.
167+
file. See the `admin guide`_ for more detail.
168168

169169
**LOGGING_LEVEL** - ``'DEBUG'``, ``'INFO'``, ``'WARNING'`` or ``'ERROR'``
170170
This variable determines the level of messages logged by the built-in
171171
logging service - messages of the level named and higher will be sent to
172172
the ``LOGGING_FILENAME`` file. Not used when the ``LOGGGING_CONFIG``
173-
variable is set.
173+
variable is set. See the `admin guide`_ for more detail.
174174

175175
**MESSAGES_TO_AUTHOR** - ``'new'``, ``'yes'`` or``'no'``
176176
Send nosy messages to the author of the message?
@@ -267,7 +267,7 @@ tracker is attempted.::
267267
# configuration of the logging module. The latter is activated when you
268268
# provide the LOGGING_FILENAME and optionally LOGGING_LEVEL variables. If
269269
# none of these variables are defined then only errors will be logged, and
270-
# they will go to stderr.
270+
# they will go to stderr. See the Admin Guide for more detail.
271271
# LOGGGING_CONFIG = os.path.join(TRACKER_HOME, 'logging.ini')
272272
# or,
273273
# LOGGING_FILENAME = '/path/to/log file'
@@ -4057,4 +4057,5 @@ Back to `Table of Contents`_
40574057

40584058
.. _`Table of Contents`: index.html
40594059
.. _`design documentation`: design.html
4060+
.. _`admin guide`: admin_guide.html
40604061

doc/upgrading.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ Lines ``meta http-equiv`` added to the tracker templates in version 0.6.0
4444
are misleading and should be removed. Actual charset is sent in the
4545
true http header.
4646

47+
0.8.0 Logging Configuration
48+
---------------------------
49+
4750

4851
Migrating from 0.7.2 to 0.7.3
4952
=============================

0 commit comments

Comments
 (0)