File: logging.rst

package info (click to toggle)
owslib 0.35.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,772 kB
  • sloc: xml: 143,288; python: 24,542; makefile: 15
file content (14 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Logging
=======

OWSLib logs messages to the 'owslib' named Python logger.  You may configure your
application to use the log messages as follows:

.. code-block:: python

    import logging

    owslib_logger = logging.getLogger('owslib')

    # Add formatting and handlers as needed
    owslib_logger.setLevel(logging.DEBUG)