def initaliseLogger():
global log
log = logging.getLogger("pySimReader")
#~ log.setLevel(logging.INFO)
log.setLevel(logging.WARNING)
# Define the handler and formmatter
myLogHandler = logging.FileHandler("pySimReader.log", "w")
# Attach the formatter to the handler and the handler to the log
myLogHandler.setFormatter(logging.Formatter("%(asctime)s - %(levelname)-5s : %(message)s", "%H:%M:%S"))
log.addHandler(myLogHandler)
log.info("Started pySimReader: %s" % (time.asctime()))
#####################################################################################
# This class will be the main windows for the pySIM application #
#####################################################################################
评论列表
文章目录