Merge lp:~jaypipes/glance/docs into lp:~hudson-openstack/glance/trunk

Proposed by Jay Pipes
Status: Merged
Approved by: Jay Pipes
Approved revision: 127
Merged at revision: 130
Proposed branch: lp:~jaypipes/glance/docs
Merge into: lp:~hudson-openstack/glance/trunk
Diff against target: 60 lines (+18/-16)
1 file modified
doc/source/configuring.rst (+18/-16)
To merge this branch: bzr merge lp:~jaypipes/glance/docs
Reviewer Review Type Date Requested Status
Cory Wright (community) Approve
Brian Waldon (community) Approve
steve chu Pending
Review via email: mp+59149@code.launchpad.net

Description of the change

Improve logging configuration docs...

To post a comment you must log in.
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Looks good, as long as it addresses Steve's original concern.

review: Approve
Revision history for this message
Cory Wright (corywright) wrote :

lgtm.

Steve?

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/configuring.rst'
2--- doc/source/configuring.rst 2011-04-04 17:00:26 +0000
3+++ doc/source/configuring.rst 2011-04-26 23:45:44 +0000
4@@ -66,8 +66,7 @@
5 -----------------------------
6
7 There are a number of configuration options in Glance that control how Glance
8-servers log messages. The configuration options can be specified both on the
9-command line and in the ``glance.conf`` config file.
10+servers log messages.
11
12 * ``--log-config=PATH``
13
14@@ -77,30 +76,33 @@
15
16 Takes a path to a configuration file to use for configuring logging.
17
18-* ``--log-format``
19-
20-`Because of a bug in the PasteDeploy package, this option is only available
21-on the command line.`
22-
23-Optional. Default: ``%(asctime)s %(levelname)8s [%(name)s] %(message)s``
24-
25-The format of the log records. See the
26-`logging module <http://docs.python.org/library/logging.html>`_ documentation for
27-more information on setting this format string.
28-
29-* ``log_file`` (``--log-file`` when specified on the command line)
30+Logging Options Available in ``glance.conf``
31+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32+
33+You will want to place the different logging options **in each of the API and registry
34+application sections in your glance.conf**. As an example, you might do the following::
35+
36+ [app:glance-api]
37+ ... other options ...
38+ log_file = /var/log/glance/api.log
39+
40+ [app:glance-registry]
41+ ... other options ...
42+ log_file = /var/log/glance/registry.log
43+
44+* ``log_file``
45
46 The filepath of the file to use for logging messages from Glance's servers. If
47 missing, the default is to output messages to ``stdout``, so if you are running
48 Glance servers in a daemon mode (using ``glance-control``) you should make
49 sure that the ``log_file`` option is set appropriately.
50
51-* ``log_dir`` (``--log-dir`` when specified on the command line)
52+* ``log_dir``
53
54 The filepath of the directory to use for log files. If not specified (the default)
55 the ``log_file`` is used as an absolute filepath.
56
57-* ``log_date_format`` (``--log-date-format`` when specified from the command line)
58+* ``log_date_format``
59
60 The format string for timestamps in the log output.
61

Subscribers

People subscribed via source and target branches