add misc/log.py

Signed-off-by: Max Liao <maxliaops@gmail.com>