I am logging change of state values within my Python program... I am using XBee ZigBee. The python XBee documentation provides Event Log documentation. It gives code and general concept about loggers, handlers, and formatters. However, looking elsewhere (YouTube etc.) I have simply used a logging.basicConfig method at the top of my code. like so:
logging.basicConfig(filename='test.csv', level=logging.INFO, format='%(asctime)s:%(levelname)s:%(message)s')
and then whenever I want to log variable I just put a logging.info (or any particular level, debug,warning, etc) after the variable.
so my concern/question is, what am I missing? I didnt really use any of the XBee python log event approach as provided by the XBee documentation.. I used the simple approach as clarified above. There must be a catch, too easy. Any problems with what am I doing? am I missing anything? Did I successfully create a CSV file?
like.. I can change the filename='test.csv' to filename='test.monkeys' and then another file is opened called test.monkeys.. is this a monkeys file type? My IDE recognizes the .csv one I made and prompts me to use a csv plugin.. but not for the .monkeys file.. no monkeys plugin lolol
so anyways.. did I really create a csv file or did I just call something a name that ends in ".csv"? no clue