logging.py - add os.path.splitext for set log name.