File: logging.rst

package info (click to toggle)
tryton-server 7.0.40-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,748 kB
  • sloc: python: 53,502; xml: 5,194; sh: 803; sql: 217; makefile: 28
file content (20 lines) | stat: -rw-r--r-- 736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.. _ref-tools-logging:
.. module:: trytond.tools.logging

logging
=======

.. class:: format_args(args, kwargs[, verbose[, max_args[, max_items]]])

   If ``verbose`` is False, the string representation of this class is a
   shortened version of the arguments taken from ``args`` and from the keyword
   arguments in ``kwargs``. Otherwise, they are fully represented.

   ``max_args`` is the maximum number of arguments shown before using an ellipse.
   ``max_items`` is the maximum number of items shown in each argument before
   using an ellipse.

   In the shortened version, strings and bytes are shortened.

   The values of mapping using a sensitive name containing ``password``,
   ``token`` and ``secret`` are always redacted.