class_docstr: Helper to establish and control a Logger
class_docstr_tok: ["Helper","to","establish","and","control","a","Logger"]
docstr: Parameters
  ----------
  name :
  logtarget : string, optional
    If we want to use our logger for other log targets, while having
    a uniform control over them
docstr_tok: ["Parameters","--","--","--","--","--","name",":","logtarget",":","string",",","optional","If","we","want","to","use","our","logger","for","other","log","targets",",","while","having","a","uniform","control","over","them"]
code: def __init__(self, name="datalad", logtarget=None):
      """
  
      Parameters
      ----------
      name :
      logtarget : string, optional
        If we want to use our logger for other log targets, while having
        a uniform control over them
      """
      self.name = name
      self.logtarget = logtarget
      self.lgr = logging.getLogger(
          logtarget if logtarget is not None else name
      )
  
imports: from contextlib import contextmanager
  from functools import partial
  import inspect
  import logging
  import os
  import sys
  import platform
  import random
  import logging.handlers
  import warnings
  from os.path import basename, dirname
  from collections import defaultdict
  from .utils import is_interactive, optional_args
  from .support import ansi_colors
label_desc: Use image node_id 1 to create a new LoggerHelper object from inherited base classes: object with example: obj = LoggerHelper(name, logtarget)