def init_logs():
start_time = dt.fromtimestamp(time.time()).strftime('<STR_LIT>')<EOL>logname = os.path.join(os.path.expanduser("<STR_LIT>") + "<STR_LIT>" + start_time + "<STR_LIT>")<EOL>handlers = [logging.FileHandler(logname)]<EOL>logging.basicConfig(<EOL>format='<STR_LIT>',<EOL>handlers=handlers,<EOL>level=logging.INFO)<EOL>logging.info('<STR_LIT>'.format(__version__, nanoplot.__version__))<EOL>logging.info('<STR_LIT>'.format(sys.version.replace('<STR_LIT:\n>', '<STR_LIT:U+0020>')))<EOL>return logname<EOL>
Initiate log file.