CD2: Enable logging in Python script

Jump to solution
tyler_clair
Community Champion

With the CLI DAP client you can add the optional argument to increase the loglevel. Is there a way to propagate the logging into my own python scripts?

0 Likes
1 Solution
LeventeHunyadi
Instructure
Instructure

DAP client library uses the Python module logging. DAP client library functions inherit any configuration you set on the module logging if you interact with classes and functions defined in the client interface defined in api.py.

In fact, DAP command-line interface is a thin wrapper around the programmatic interface; it configures the Python module logging based on command-line arguments before it invokes the appropriate function in api.py.

View solution in original post

0 Likes