From: GĂ©rald NICOLAS Date: Wed, 7 Apr 2021 12:03:25 +0000 (+0200) Subject: Fichier de log X-Git-Tag: V9_7_0a1~6^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6a42b4e2db5277b4d9d8f75c30638b902117582a;p=modules%2Fsmesh.git Fichier de log --- diff --git a/src/Tools/blocFissure/gmu/initLog.py b/src/Tools/blocFissure/gmu/initLog.py index 22eeb4307..01918d56d 100644 --- a/src/Tools/blocFissure/gmu/initLog.py +++ b/src/Tools/blocFissure/gmu/initLog.py @@ -21,6 +21,7 @@ import logging import os +import tempfile debug = 10 info = 20 @@ -29,9 +30,13 @@ error = 40 critical = 50 always = 100 +filelog = os.path.join(tempfile.gettempdir(),"blocFissure.log") + loglevel = warning -logging.basicConfig(format='%(funcName)s[%(lineno)d] %(message)s', - level=logging.WARNING) + +logging.basicConfig(format='%(funcName)s[%(lineno)d] %(message)s', \ + level=logging.WARNING, \ + filename=filelog) ch = None fh = None