Python debug logging helpers
Project description
debug_this
Python debug logging helpers
@debug_this.function
This decorator can be used to log the execution of a function.
import logging
import debug_this
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
@debug_this.function(logger)
def example_function():
logger.info("This is example_function")
example_function()
The resulting logs should look like this:
DEBUG:__main__: >>> example_function
INFO:__main__:This is example_function
DEBUG:__main__: <<< example_function
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
debug_this-0.2.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for debug_this-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f3dec6be306a8de5db4590d088005481d8ce30288fedda5b64c65fe2e040a8 |
|
MD5 | c1b0f23b5ddbbd632e0948943cd7db8d |
|
BLAKE2b-256 | 2af7647e3fa497b9e8531ca6a510938b05d61a65d402d75950e8656aff771c48 |