CD2: Enable logging in Python script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023
09:36 AM
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?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023
02:57 PM
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.