Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Created July 8, 2020 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binshengliu/40c9c8c68811294871a5513f18ebbb29 to your computer and use it in GitHub Desktop.
Save binshengliu/40c9c8c68811294871a5513f18ebbb29 to your computer and use it in GitHub Desktop.
Setup a basic logger to lot INFO to stderr
logging.basicConfig(
level=logging.INFO,
stream=sys.stderr,
format="[%(asctime)s][%(levelname)s] - %(message)s",
)
log = logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment