Hi there, I need to use python logging module to print debugging info to a file with statements like:
logging.debug(something)
The file is truncated (i am assuming - by the logging module) and the messages get deleted before I can see them - how can that be prevented?
Here is my logging config:
logging.basicConfig(
level = logging.DEBUG,
format = '%(asctime)s %(levelname)s %(message)s',
filename = '/tmp/my-log.txt',
filemode = 'w'
)
Thanks!