Last active
March 12, 2022 13:08
-
-
Save shaybensasson/e98e35ed67eff6d6ebe452bba23987c4 to your computer and use it in GitHub Desktop.
~One liner logging to console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logging.basicConfig(level="DEBUG", style="{", | |
format='[{asctime:s}] {levelname:7s} | {process:5d} | {name:s} | {message:s}') | |
_logger = logging.getLogger(__name__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment