Answers for "python log class"

7

create log in python

logging.basicConfig(filename="logfilename.log", level=logging.INFO)
# Log Creation

logging.info('your text goes here')
logging.error('your text goes here')
logging.debug('your text goes here')
Posted by: Guest on October-28-2020
0

log in python

def log(x,base):
    result = ln(x)/ln(base)
    return result

def ln(x):
    n = 100000.0
    return n * ((x ** (1/n)) - 1)

print(log(2,4))

#code by fawlid
Posted by: Guest on November-17-2021
0

is login a class in python

class User:

def __init__(self,username,password,basket):
    self.username=username
    self.password=password
    self.basket=basket
Posted by: Guest on October-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language