my log configuration is as follows: the log is automatically output to the console at runtime and suspended with nohup, and the corresponding output will also output nohup.out
while my.log will also have the correct log output
the log output format of my.log is correct, and the log output to the console is the same as the log generated by ide (pychram) debugging
logHandler = TimedRotatingFileHandler("logs/my.log", when="midnight")
logFormatter = logging.Formatter("%(asctime)s %(name)-12s %(levelname)-8s %(message)s")
logHandler.setFormatter(logFormatter)
logger = logging.getLogger("myapp")
logger.addHandler(logHandler)
logger.setLevel(logging.INFO)
how should I modify it?