Skip to content

Instantly share code, notes, and snippets.

View FanchenBao's full-sized avatar

Fanchen Bao FanchenBao

View GitHub Profile
@FanchenBao
FanchenBao / vanilla_version.py
Last active December 10, 2019 00:01
Expanded demo code for Python3 logging with multiprocessing
import logging
import logging.handlers
import multiprocessing
from time import sleep
from random import random, randint
# Almost the same as the demo code, but added `console_handler` to directly
# read logging info from the console
def listener_configurer():