-
-
Notifications
You must be signed in to change notification settings - Fork 164
Logging
Oliver Zehentleitner edited this page Mar 28, 2023
·
5 revisions
To configure the logging you can use the following example code.
Full example file: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/blob/master/example_logging.py
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="{")
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.