doc/book/admin/rql-logs.rst
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 21 Mar 2019 14:33:54 +0100
changeset 12530 9d88e1177c35
parent 10491 c67bcee93248
permissions -rw-r--r--
Remove Twisted web server Twisted web server is not used anymore and has been superseded by pyramid many years ago. Furthermore, our usage is not compatible with Python 3. So we drop the "etwist" sub-package. As a consequence, "all-in-one" configuration type gets dropped as it was Twisted-specific. We resurrect it in cubicweb/pyramid/config.py by only keeping options used by the "pyramid". Similarly, we introduce a AllInOneCreateHandler in cubicweb/pyramid/pyramidctl.py that is basically the one that lived in cubicweb/etwist/twctl.py and is used to create the "all-in-one" instance. Added a TODO here about "pyramid.ini" that could be generated at the end of bootstrap() method. In cubicweb/devtools/httptest.py, CubicWebServerTC is now equivalent to CubicWebWsgiTC and the latter is dropped.
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