code: def format(self, record):
      log_fmt = self.FORMATS.get(record.levelno)
      formatter = logging.Formatter(log_fmt)
      return formatter.format(record)
  
file_path: labml/app/server/labml_app/logger/logger.py
imports: import logging
  from logging import StreamHandler
  from logging.handlers import RotatingFileHandler
  from labml_app.settings import IS_LOCAL_SETUP
label_desc: Use image node_id 1 for calling the CustomFormatter obj's underlying member method code with example usage: obj.format(record) and returns: formatter