############################################################################ #Function Name : compileFileName # #Input : Nil # #Return Value : just sets the suffix fileName for logs # ############################################################################ def compileFileName(): dayTime = generic.dateTimeFields() dayTime += '_' + 'wowgic' return dayTime ############################################################################ globalS.init() #intialize the global variables generic = generic.generic() #==============================================================================# # Opening log file to record all the cli outputs # #==============================================================================# sufFileName = compileFileName() logFileName = "/tmp/" + sufFileName + ".log" logger = loggerRecord.loggerInit(logFileName, args.logLevel) logger.debug('Log file# %s & TestBed file ', logFileName) #keys from twitter is stored here temp will be removed once we access the user credentials #chella's credentials consumer_key = 'HwvpHtsPt3LmOZocZXwtn72Zv' consumer_secret = 'afVEAR0Ri3ZluVItqbDi0kfm7BHSxjwRXbpw9m9kFhXGjnzHKh' access_token = '419412786-cpS2hDmR6cuIf8BD2kSSri0BAWAmXBA3pzcB56Pw'
app.config.from_envvar("APP_CONFIG_FILE") ############################################################################ # Function Name : compileFileName # # Input : Nil # # Return Value : just sets the suffix fileName for logs # ############################################################################ def compileFileName(): dayTime = generic.dateTimeFields() dayTime = "wowgic" + "_" + "flask" return dayTime ############################################################################ globalS.init() # intialize the global variables globalS.dictDb = app.config generic = generic.generic() # ==============================================================================# # Opening log file to record all the cli outputs # # ==============================================================================# sufFileName = compileFileName() logFileName = "/tmp/" + sufFileName + ".log" logger, fhandler = loggerRecord.loggerInit(logFileName, args.logLevel) logger.debug("Log file# %s & TestBed file", logFileName) logger.debug("global dictDB file# %s", globalS.dictDb) # logger.debug('global app file# %s',app.config) logger.info( """ .----------------. .----------------. .----------------. .----------------. .----------------. .----------------.