code: def addNewLvls(self):
          
          # Level for raise message to print to file (File only)
          RAISEMSG = 99
          logging.addLevelName(RAISEMSG, 'RAISEMSG')
          def raisemsg(self,msg,lvl=RAISEMSG, *args, **kws):
              self.log(lvl,msg, *args, **kws)
          logging.Logger.raisemsg = raisemsg
          # Level for minimal info more important than standard INFO level
          IMPORTANTINFO = 25
          logging.addLevelName(IMPORTANTINFO, 'IMPORTANTINFO')
          def importantinfo(self,msg,lvl=IMPORTANTINFO, *args, **kws):
              self.log(lvl,msg, *args, **kws)
          logging.Logger.importantinfo = importantinfo
          # Level for message to ONLY be written to file and not the screen
          FILEONLY = 1
          logging.addLevelName(FILEONLY, 'FILEONLY')
          def fileonly(self,msg,lvl=FILEONLY, *args, **kws):
              self.log(lvl,msg, *args, **kws)
          logging.Logger.fileonly = fileonly
docs: +---------------------+----------------------+
          |    Standard Levels  |        New Levels    |
          +---------------+-----+----------------+-----+
          |    Name       |Level|  Name          |Level|
          +===============+=====+================+=====+
          |               |     |RAISEMSG        | 99  |
          +---------------+-----+----------------+-----+
          |CRITICAL       |  50 |                |     | 
          +---------------+-----+----------------+-----+
          |ERROR          |  40 |                |     |
          +---------------+-----+----------------+-----+
          |WARNING        |  30 |                |     |
          +---------------+-----+----------------+-----+
          |               |     |IMPORTANTINFO   | 25  |
          +---------------+-----+----------------+-----+
          |INFO           |  20 |                |     |
          +---------------+-----+----------------+-----+
          |DEBUG          |  10 |                |     |
          +---------------+-----+----------------+-----+
          |               |     |FILEONLY        |  1  |
          +---------------+-----+----------------+-----+
          |NOTSET         |  0  |                |     |
          +---------------+-----+----------------+-----+