parameters: (self,*texts,**kwargs)
docstring: Write output to log file.
             Keyword arguments
              n - spaces to indent
              progress - if True and output is to a terminal, overwrite and
                         update the last line, rather than scrolling.
docstring_summary: Write output to log file.
             Keyword arguments
              n - spaces to indent
              progress - if True and output is to a terminal, overwrite and
                         update the last line, rather than scrolling.
docstring_tokens: Write output to log file . Keyword arguments n - spaces to indent progress - if True and output is to a terminal overwrite and update the last line rather than scrolling .
function: def log(self,*texts,**kwargs):
          """Write output to log file.
             Keyword arguments
              n - spaces to indent
              progress - if True and output is to a terminal, overwrite and
                         update the last line, rather than scrolling.
          """
          if nexus_core.verbose:
              if len(kwargs)>0:
                  n = kwargs['n']
              else:
                  n=0
              #end if
              is_progress = kwargs.get('progress',False)
              text=''
              for t in texts:
                  text+=str(t)+' '
              #end for
              pad = n*nexus_core.indent
              output_text = pad+text.replace('\n','\n'+pad)
              if nexus_core.progress_tty and is_progress and self._logfile.isatty():
                  # spaces to ensure previous line is overwritten.  Need better solution.
                  self._logfile.write(output_text+'        \r')
                  self._logfile.flush()
              else:
                  self._logfile.write(output_text+'\n')
          #end if
          NexusCore.wrote_something = True
function_tokens: def log ( self , * texts , * * kwargs ) : if nexus_core . verbose : if len ( kwargs ) > 0 : n = kwargs [ 'n' ] else : n = 0 #end if is_progress = kwargs . get ( 'progress' , False ) text = '' for t in texts : text += str ( t ) + ' ' #end for pad = n * nexus_core . indent output_text = pad + text . replace ( '\n' , '\n' + pad ) if nexus_core . progress_tty and is_progress and self . _logfile . isatty ( ) : # spaces to ensure previous line is overwritten.  Need better solution. self . _logfile . write ( output_text + '        \r' ) self . _logfile . flush ( ) else : self . _logfile . write ( output_text + '\n' ) #end if NexusCore . wrote_something = True