          self.stop = True
  
      def monitor_preview(self):
          """ Generate the preview window and wait for keyboard input """
          print("Using live preview.\n"
                "Press 'ENTER' on the preview window to save and quit.\n"
                "Press 'S' on the preview window to save model weights "
                "immediately")
          while True:
              try:
                  with self.lock:
                      for name, image in self.preview_buffer.items():
                          cv2.imshow(name, image)
 
</s> remove             print("could not preview sample")
 </s> add             logging.error("could not preview sample") </s> remove         print("Starting. Press 'ENTER' to stop training and save model")
 </s> add         logger.info("Starting. Press 'ENTER' to stop training and save model") </s> remove         argument_list.append({"opts": ("-v", "--verbose"),
                              "action": "store_true",
                              "dest": "verbose",
                              "default": False,
                              "help": "Show verbose output"})
 </s> add  </s> remove         print("Exit requested! The trainer will complete its current cycle, "
              "save the models and quit (it can take up a couple of seconds "
              "depending on your training speed). If you want to kill it now, "
              "press Ctrl + c")
 </s> add         logger.info("Exit requested! The trainer will complete its current cycle, "
                    "save the models and quit (it can take up a couple of seconds "
                    "depending on your training speed). If you want to kill it now, "
                    "press Ctrl + c")
        logger.info("Using live preview.\n"
                    "Press 'ENTER' on the preview window to save and quit.\n"
                    "Press 'S' on the preview window to save model weights "
                    "immediately")
          self.stop = True
  
      def monitor_preview(self):
          """ Generate the preview window and wait for keyboard input """
        logger.info("Using live preview.\n"
                    "Press 'ENTER' on the preview window to save and quit.\n"
                    "Press 'S' on the preview window to save model weights "
                    "immediately")
        logger.info("Using live preview.\n"
                    "Press 'ENTER' on the preview window to save and quit.\n"
                    "Press 'S' on the preview window to save model weights "
                    "immediately")
        logger.info("Using live preview.\n"
                    "Press 'ENTER' on the preview window to save and quit.\n"
                    "Press 'S' on the preview window to save model weights "
                    "immediately")
        logger.info("Using live preview.\n"
                    "Press 'ENTER' on the preview window to save and quit.\n"
                    "Press 'S' on the preview window to save model weights "
                    "immediately")
          while True:
              try:
                  with self.lock:
                      for name, image in self.preview_buffer.items():
                          cv2.imshow(name, image)
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
scripts/train.py