Skip to content

Instantly share code, notes, and snippets.

@zhangchunlin
Last active February 18, 2020 00:49
Show Gist options
  • Save zhangchunlin/8398008e72c72fe18626 to your computer and use it in GitHub Desktop.
Save zhangchunlin/8398008e72c72fe18626 to your computer and use it in GitHub Desktop.
python snippet
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
log = logging.getLogger(__name__)
[LOG.Loggers]
uliweb.example = {'level':'info'}
import logging
log = logging.getLogger('example')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment