logging: logging module code for study.