Salome HOME
Bug: unable to create LocalLength hyp for a sub-mesh on a shape with a degenerated...
[modules/smesh.git] / src / Tools / blocFissure / gmu / initLog.py
1 # -*- coding: utf-8 -*-
2
3 import logging
4
5 def setDebug():
6   logging.basicConfig(format='%(relativeCreated)d %(funcName)s[%(lineno)d] %(message)s',
7                       level=logging.DEBUG)
8   logging.info('start Debug')
9
10 def setVerbose():
11   logging.basicConfig(format='%(relativeCreated)d %(funcName)s[%(lineno)d] %(message)s',
12                       level=logging.INFO)
13   logging.info('start Verbose')
14
15 def setRelease():
16   logging.basicConfig(format='%(funcName)s[%(lineno)d] %(message)s',
17                       level=logging.WARNING)
18   logging.warning('start Release')
19   
20 def setUnitTests():
21   logging.basicConfig(format='%(funcName)s[%(lineno)d] %(message)s',
22                       level=logging.CRITICAL)
23   logging.critical('start UnitTests')
24   
25   #logging.basicConfig(filename='myapp.log',
26   #                    format='%(asctime)s %(message)s',
27   #                    datefmt='%m/%d/%Y %I:%M:%S %p',
28   #                    level=logging.DEBUG)