doc/book/en/admin/rql-logs.rst
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 26 Aug 2013 16:15:29 +0200
changeset 9257 ce338133c92c
parent 6646 159d0dbe07d9
permissions -rw-r--r--
remove cw 3.9 bw compat (bw compat other than the interface -> adapter changes) - cwconfig, doc/admin/setup: docstring adjustment wrt 3.9 & virtualenv - testing/rst: windmill (which is gone from the testing infrastructure) - other docs: "stuff introduced in 3.9" cleanup, as we don't care about the version old features were introduced - server/hooky.py: bw compat for propagation hooks - server/schemaserial.py: pre CWUniqueTogetherConstraint migration support - web.__init__.py: dumps bw import - autoform.py: .action ppty is gone, also deprecate set_action and get_action - baseviews: CSVView.subvid gone long ago, secondary view removal - primary.py: _render_attribute & _render_relation signature change - reledit.py: rvid/default_value bw compat, should_edit_* dropped - webconfig.py: resourcefile is gone - formfields.py: old vocabulary handling - request.py: build_ajax_replace_url, external_resource Related to #2782004.
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