(filename=Consts.CDefLogFile, level=Consts.CDefLogLevel)
Enable the log system for pyevolve

   :param filename: the log filename
   :param level: the debugging level

   Example:
      >>> pyevolve.logEnable()
Enable the log system for pyevolve
Enable the log system for pyevolve
def logEnable(filename=Consts.CDefLogFile, level=Consts.CDefLogLevel):
   """ Enable the log system for pyevolve

   :param filename: the log filename
   :param level: the debugging level

   Example:
      >>> pyevolve.logEnable()

   """
   import logging
   logging.basicConfig(level=level,
                       format='%(asctime)s [%(module)s:%(funcName)s:%(lineno)d] %(levelname)s %(message)s',
                       filename=filename,
                       filemode='w')
   logging.info("Pyevolve v.%s, the log was enabled by user.", __version__)
def logEnable ( filename = Consts . CDefLogFile , level = Consts . CDefLogLevel ) : import logging logging . basicConfig ( level = level , format = '%(asctime)s [%(module)s:%(funcName)s:%(lineno)d] %(levelname)s %(message)s' , filename = filename , filemode = 'w' ) logging . info ( "Pyevolve v.%s, the log was enabled by user." , __version__ )