Apr-25-2021, 12:49 PM
Hello ,
I notice in many examples there is a logger
where can I find it ?
or is it something I need to setup also ? - of so what to do ?
will this do?
Thanks,
I notice in many examples there is a logger
import loggin logger = logging.getLogger('localGATT') logger.setLevel(logging.DEBUG)but I don't see any referance to the file
where can I find it ?
or is it something I need to setup also ? - of so what to do ?
will this do?
logging.basicConfig(filename='app.log', filemode='w', format='%(name)s - %(levelname)s - %(message)s')and then in the file I will get all the debug data ?
Thanks,