code: def _pydevd_log(level, msg, *args):
      '''
      Levels are:
  
      0 most serious warnings/errors (always printed)
      1 warnings/significant events
      2 informational trace
      3 verbose mode
      '''
      if level <= DebugInfoHolder.DEBUG_TRACE_LEVEL:
          # yes, we can have errors printing if the console of the program has been finished (and we're still trying to print something)
          try:
              try:
                  if args:
                      msg = msg % args
              except:
                  msg = '%s - %s' % (msg, args)
              DebugInfoHolder.DEBUG_STREAM.write('%s\n' % (msg,))
              DebugInfoHolder.DEBUG_STREAM.flush()
          except:
              pass
          return Truf _pydevd_log(level, msg, *args):
      '''
      Levels are:
  
      0 most serious warnings/errors (always printed)
      1 warnings/significant events
      2 informational trace
      3 verbose mode
      '''
      if level <= DebugInfoHolder.DEBUG_TRACE_LEVEL:
          # yes, we can have errors printing if the console of the program has been finished (and we're still trying to print something)
          try:
              try:
                  if args:
                      msg = msg % args
              except:
                  msg = '%s - %s' % (msg, args)
              DebugInfoHolder.DEBUG_STREAM.write('%s\n' % (msg,))
              DebugInfoHolder.DEBUG_STREAM.flush()
          except:
              pass
          return True
docs: Levels are:
  
      0 most serious warnings/errors (always printed)
      1 warnings/significant events
      2 informational trace
      3 verbose mode