class_docstr: A customized Logger file that enables the possibility of only logging to file.
docstr: Logs the message only to the logging file.
  
  Args:
      msg: Message to be logged.
docstr_tok: ["Logs","the","message","only","to","the","logging","file",".","Args",":","msg",":","Message","to","be","logged","."]
code: def to_file(self, msg: str, *args, **kwargs) -> None:
      """Logs the message only to the logging file.
  
      Args:
          msg: Message to be logged.
  
      """
  
      self.handlers[0].setLevel(logging.CRITICAL)
      self.info(msg, *args, **kwargs)
      self.handlers[0].setLevel(LOG_LEVEL)
  
file_path: opytimizer/opytimizer/utils/logging.py
imports: import logging
  import sys
  from logging import StreamHandler
  from logging.handlers import TimedRotatingFileHandler
label_desc: Use image node_id 1 for calling the Logger obj's underlying member method code with example usage: obj.to_file(msg) without return types