Exemple #1
0
    def info(self, msg):
        """
                Errors.info()

                msg     :       string
        """
        LOGGER.info( msg )
Exemple #2
0
    def debug(self, msg):
        """
                Errors.debug()

                msg     :       string
        """
        LOGGER.debug(msg)
Exemple #3
0
    def warning(self, msg):
        """
                Errors.warning

                msg     :       string
        """
        self.number_of_warnings += 1
        LOGGER.warning( msg )
Exemple #4
0
    def error(self, msg):
        """
                Errors.error

                msg     :       string
        """
        self.number_of_errors += 1
        LOGGER.error( msg )
Exemple #5
0
logotheras.options.OPTIONS["minimal freeness"] = ARGS.minimalfreeness
logotheras.options.OPTIONS["rst::template directory"] = ARGS.RSTtemplatedirectory
logotheras.options.OPTIONS["normalize"] = ARGS.normalize.split("+")
logotheras.options.OPTIONS["textdbdict::write TextDBDict files with detailed names"] = (
    ARGS.TEXTDBDICTwritefileswithdetailednames == "yes"
)
logotheras.options.OPTIONS["textdbdict::maximal number of characters in a filename"] = ARGS.TEXTDBDICTfilenamemaxnbrc
logotheras.options.OPTIONS["use DChars"] = ARGS.useDChars == "yes"
logotheras.options.OPTIONS["logs"] = ARGS.logs.split("+")
logotheras.options.OPTIONS["HERMAIA"] = os.path.abspath(ARGS.HERMAIA)
logotheras.options.OPTIONS["HERMAIAoutput"] = ARGS.HERMAIAoutput

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# logger :
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOGGER.init(destpath=ARGS.loggerpath, level=ARGS.loggerlevel, logs_to_be_used=logotheras.options.OPTIONS["logs"])

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# arguments and scenario ?
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOGOTHERAS_OBJECT = None

HERMAIAOUTPUT = os.path.abspath(ARGS.HERMAIAoutput)
if ARGS.HERMAIA != "none":
    if not os.path.exists(HERMAIAOUTPUT):
        LOGGER.info(">>> (scenario #0) creating the Hermaia's " "destination path = '{0}'".format(HERMAIAOUTPUT))
        os.makedirs(HERMAIAOUTPUT)
    elif os.path.exists(HERMAIAOUTPUT) and ARGS.cleandestdirectories:
        LOGGER.info(">>> (scenario #0) cleaning the Hermaia's " "destination path = '{0}'".format(HERMAIAOUTPUT))
        shutil.rmtree(HERMAIAOUTPUT)
        os.makedirs(HERMAIAOUTPUT)