doc/book/admin/rql-logs.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 22 Dec 2015 09:23:00 +0100
changeset 11144 fd8bf29ed00e
parent 10491 c67bcee93248
permissions -rw-r--r--
[tox] Generate test environments for Python 2.7 and 3.4 Test commands for each environment are written down explicitly since I could not find a way to extract the "package" name (e.g. "hooks") from the environment name (e.g. "py34-hooks"). For Python 3.4 interpreter, only environments (subpackages) that do not depend on cubes for their tests are listed since those test dependency cubes are not yet installable with Python 3.x. etwist is also not included since the Python 3 port is not complete at the moment. From local testing, py34 tests pass for the following subpackages: - dataimport - entities - ext - hooks - wsgi
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6646
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     1
.. -*- coding: utf-8 -*-
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     2
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     3
RQL logs
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     4
========
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     5
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     6
You can configure the *CubicWeb* instance to keep a log
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     7
of the queries executed against your database. To do so,
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     8
edit the configuration file of your instance
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     9
``.../etc/cubicweb.d/myapp/all-in-one.conf`` and uncomment the
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    10
variable ``query-log-file``::
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    11
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    12
  # web instance query log file
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    13
  query-log-file=/tmp/rql-myapp.log
159d0dbe07d9 [book] move bit about rql logs to its own section
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    14