Skip to content

Instantly share code, notes, and snippets.

@binshengliu
Created July 8, 2020 02:22
Show Gist options
  • Select an option

  • Save binshengliu/40c9c8c68811294871a5513f18ebbb29 to your computer and use it in GitHub Desktop.

Select an option

Save binshengliu/40c9c8c68811294871a5513f18ebbb29 to your computer and use it in GitHub Desktop.

Revisions

  1. binshengliu created this gist Jul 8, 2020.
    6 changes: 6 additions & 0 deletions setup_log.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    logging.basicConfig(
    level=logging.INFO,
    stream=sys.stderr,
    format="[%(asctime)s][%(levelname)s] - %(message)s",
    )
    log = logging.getLogger(__name__)