class_docstr: Maintain logging level.
class_docstr_tok: ["Maintain","logging","level","."]
code: def __init__(self, log_name="mkdocs", level=logging.INFO):
      self.logger = logging.getLogger(log_name)
      self.logger.setLevel(level)
      self.logger.propagate = False
  
      self.stream = logging.StreamHandler()
      self.stream.setFormatter(ColorFormatter())
      self.stream.name = "MkDocsStreamHandler"
      self.logger.addHandler(self.stream)
  
imports: from __future__ import annotations
  import logging
  import os
  import shutil
  import sys
  import textwrap
  import traceback
  import warnings
  import click
  from mkdocs import __version__, config, utils
label_desc: Use image node_id 1 to create a new State object  with example: obj = State(log_name, level)