æ¯åãã©ãã«æ¸ãããæ¢ãã¦ããã®ã§èªåç¨ã«ã¡ã¢ logãã¡ã¤ã«ã®åæè¨å®ï¼ã³ãã³ãå¼æ°åããªãçï¼ import os import logging BASE_PATH = os.path.abspath(os.path.dirname(__file__)) logFormat = '[%(asctime)s] %(levelname)s %(message)s' logFilename = 'hogeApp.log' logLevel = logging.INFO logging.basicConfig(level=logLevel, format=logFormat, filename=os.path.join(BASE_PATH,logFilename), filemode='a') logging.debug('current dir: %s'%(os.getcwd())) log
{{#tags}}- {{label}}
{{/tags}}