Skip to content

Instantly share code, notes, and snippets.

@yannisxu
Created January 23, 2013 06:39
Show Gist options
  • Save yannisxu/4602644 to your computer and use it in GitHub Desktop.
Save yannisxu/4602644 to your computer and use it in GitHub Desktop.
import logging
import os
logging.basicConfig(filename = os.path.join(os.getcwd(), 'log.txt'), level = logging.INFO, filemode = 'w', format = '%(asctime)s - %(levelname)s: %(message)s')
@yannisxu
Copy link
Author

Python 添加日志模块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment