diff --git a/predihood/testlog.py b/predihood/testlog.py deleted file mode 100644 index c84020fb674c6147adc1e0243efc6d2a8902e237..0000000000000000000000000000000000000000 --- a/predihood/testlog.py +++ /dev/null @@ -1,23 +0,0 @@ -import logging - -# logging.basicConfig(level=logging.DEBUG) - - -log_format = "[%(levelname)s] \t %(name)s \t %(filename)s::%(lineno)d \t %(message)s" -logging.basicConfig(level='DEBUG', format=log_format) -logging.debug("This is a debug message") -logging.info("This is an informational message") -logging.warning("Careful! Something does not look right") -logging.error("You have encountered an error") -logging.critical("You are in trouble") - - -def hypotenuse(a, b): - """Compute the hypotenuse""" - return (a ** 2 + b ** 2) ** 0.5 - - -a=3 -b=4 -logging.debug("Hypotenuse of {a}, {b} is {c}".format(a=a, b=b, c=hypotenuse(a, b))) -# > INFO:root:Hypotenuse of 3, 4 is 5.0