from Html_Base.api import logger as logging
class Mission:
__loggers = logging.Recording(logname="log-mission", loglevel=10).logger()
def __init__(self,logname="log-mission",log_level=30):
print("---------------------- 111111111111111 ----------------------")
Mission.__loggers.debug("test")
as above, another logger, in this script says that class initialization should be written outside _ _ init__ (whether or not all cases should be initialized outside init). How to replace the two parameters passed by logger with variables? initialize the logname and loglevel inside. I want to pass in
when executing class Mission.