摘要:
offical website note:# import the logging libraryimport logging# Get an instance of a loggerlogger = logging.getLogger(__name__)def my_view(request, arg1, arg): ... if bad_mojo: # Log an error message logger.error('Something went wrong!') but it not display log info in termina... 阅读全文
posted @ 2013-03-27 20:35 slider 阅读(191) 评论(0) 推荐(0) 编辑