mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
Fichier de log
This commit is contained in:
parent
54dfa7efaa
commit
6a42b4e2db
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user