Please suggest what I have done wrong, I am new to coding.
1. first.py file:
import logging
class Log:
def __init__(self,msg):
self.msg = msg
def debug(self,msg):
FORMAT = "%(asctime)-15s%(message)s"
logging.basicConfig(filemode = "w", filename="file.log", format = FORMAT, level=logging.DEBUG)
logging.debug(self.msg)
2. second.py file
import first
first.Log.debug("I am in debug mode")
When I run second.py file than I am getting error as Logging.Log.debug("I am in debug mode")
TypeError: debug() missing 1 required positional argument: 'msg'**