docstr: Initialize the logger object.
  
  :param name:
      Name of the logger
  :param console_level:
      minimum level of messages logged to console
docstr_tok: ["Initialize","the","logger","object",".",":","param","name",":","Name","of","the","logger",":","param","console_level",":","minimum","level","of","messages","logged","to","console"]
code: def __init__(self, name, console_level=INFO):
      """
      Initialize the logger object.
  
      :param name:
          Name of the logger
      :param console_level:
          minimum level of messages logged to console
      """
      super().__init__(
          name, console_level
      )  # can be initialized with any level
      # Logging to stdout
      self.streamHandler = logging.StreamHandler(sys.stdout)
      # Log to stdout levels: console_level and above
      self.prefix = None
      self.interactive = _is_interactive()
      self.streamHandler.setFormatter(self._build_formatter())
      super().addHandler(self.streamHandler)
  
imports: import os
  import sys
  import logging
  from logging import getLogger
label_desc: Use image node_id 1 to create a new ParlaiLogger object from inherited base classes: logging with example: obj = ParlaiLogger(name, console_level)