-
-
Notifications
You must be signed in to change notification settings - Fork 164
Logging
Oliver Zehentleitner edited this page May 9, 2024
·
5 revisions
To configure the logging you can use the following example code.
import logging
import os`
logging.getLogger("unicorn_binance_websocket_api")
logging.basicConfig(level=logging.DEBUG,
`filename=os.path.basename(__file__) + '.log',
`format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",
`style="{")
import logging
import os`
logging.getLogger("unicorn_binance_websocket_api")
logging.basicConfig(level=logging.DEBUG,
`format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",
`style="{")
Full example file: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/blob/master/examples/_archive/example_logging.py
UNICORN Binance WebSocket API and all other tools of the UNICORN Binance Suite are open source projects which welcomes contributions which can be anything from simple documentation fixes and reporting dead links to new features. To contribute follow this guide.