Skip to content
Snippets Groups Projects
Commit 1e315b84 authored by Nelly Barret's avatar Nelly Barret
Browse files

[R] removed test files

parent 3597588c
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment