3 This file include basis functions
14 self.dir = os.path.join( os.getcwd(), 'log' )
16 def log (self, loginfo):
18 Record log in log directory for deploying test environment
20 loginfo(input): record info
22 filename = time.strftime( '%Y-%m-%d-%H-%M-%S' ) + '.log'
23 filepath = os.path.join( self.dir, filename )
24 logging.basicConfig( level=logging.INFO,
25 format = '%(asctime)s %(filename)s:%(message)s',
26 datefmt = '%d %b %Y %H:%M:%S',
29 filelog = logging.FileHandler( filepath )
30 logging.getLogger( 'Functest' ).addHandler( filelog )